3602 - Sneaking Into The Club

Created by Reinier Rodríguez González
Added by Spartan (2016-04-06)
Limits
Total Time: 3000 MS | Test Time: 600 MS |Memory: 21 MB | Output: 64 MB | Size: 9 KB
Enabled languages
Available in

Description

The FBI special agent Mulder is in the middle of an investigation. Now he wants to get into a club, where he suspects, are taking place important secret meetings. But getting into the club ain't so easy, he must, as every members does, know the password.

Mulder hides behind some shrubbery and listen. 
A member came, watchman said 12.
The member replied 6, watchman opened the door.
Another member came, watchman said 6.
Member replied 3, watchman opened the door.

Then Mulder thinks, I got it, but he is mistrusted, so he sends other agent before going himself.
When the other agent got to the door watchman said 8.
The agent replied 4. The watchman didn't open the door.
What was the password?
The FBI special agent Mulder is in the middle of an investigation. Now he wants to get into a club, where he suspects, are taking place important secret meetings. But getting into the club ain't so easy, he must, as every members does, know the password.

Mulder hides behind some shrubbery and listen. 
A member came, watchman said 12.
The member replied 6, watchman opened the door.
Another member came, watchman said 6.
Member replied 3, watchman opened the door.

Then Mulder thinks, I got it, but he is mistrusted, so he sends other agent before going himself.
When the other agent got to the door watchman said 8.
The agent replied 4. The watchman didn't open the door.
What was the password?
The FBI special agent Mulder is in the middle of an investigation. Now he wants to get into a club, where he suspects, are taking place important secret meetings. But getting into the club ain't so easy, he must, as every members does, know the password.

Mulder hides behind some shrubbery and listen. 
A member came, watchman said 12.
The member replied 6, watchman opened the door.
Another member came, watchman said 6.
Member replied 3, watchman opened the door.

Then Mulder thinks, I got it, but he is mistrusted, so he sends other agent before going himself.
When the other agent got to the door watchman said 8.
The agent replied 4. The watchman didn't open the door.
What was the password?

Input specification

On the only line of input there will be one positive integer between 0 and 12 (both inclusive), a number said by watchman.
On the only line of input there will be one positive integer between 0 and 12 (both inclusive), a number said by watchman.
On the only line of input there will be one positive integer between 0 and 12 (both inclusive), a number said by watchman.

Output specification

You must print, in one line, the corresponding reply to get into the club, in other words, the password.
You must print, in one line, the corresponding reply to get into the club, in other words, the password.
On the only line of input there will be one positive integer between 0 and 12 (both inclusive), a number said by watchman.

Sample input

12

Sample output

6

Hint(s)

Since a member has to know the answer just a moment after the watchman ask him, it shouldn't be a complex thing.
Since a member has to know the answer just a moment after the watchman ask him, it shouldn't be a complex thing.
Since a member has to know the answer just a moment after the watchman ask him, it shouldn't be a complex thing.