Postman is the best postman in the world! For this reason, they have given him a huge…
- User
Postman is the best postman in the world! For this reason, they have given him a huge mission:
The story is that one day the uncle (who is a very money-loving person) was building a building and he needed to move a very large and heavy stone to build his building. He used a crane for this work, but during the transfer, the chains tied to the stone broke and the stone fell from above directly on the post office where Mr. Postman was working and pierced the roof and fell to the ground.
Unfortunately, when the uncle was asked for damages, he first attached some stamps to the stone and claimed that he wanted to bring the stone to the post office to mail it, but since the stone would not pass through the door, he decided to put it on the roof of the post office, but because The weak and worn roof pierced the roof stone and fell to the ground! Then he asked the officials of the post office to mail the stone to him, and finally cold-heartedly attached more stamps to the stone to mail the stone by vanguard post! The officials entrusted this work to Mr. Postchi (the best postman in the world). Mr. Postman, to lift this stone, his strength must be 1st degree! But now it's hard n n is He has turned to exercise to improve his strength and goes to the gym. There are two situations here:
1- If Mr. Postchi's strength level is odd, it is time for him to take supplements and these supplements will reduce his strength level. n n to 3 n + 3 3n+3 increase. But instead, they prepare him to exercise.
2- If Mr. Postchi's power level is even, it is time for him to exercise, and by doing so, his power level will be halved.
Now, Mr. Postchi wants to know if it is at all possible for his power level to be 1 or not; Because if not, he wants to resign from this mission as soon as possible so as not to spend money on bodybuilding. (He is saving his money to upgrade his mail engine)
input In the only input line of the number n n is said to represent Mr. Postchi's initial force degree. 1 ≤ n ≤ 1 0 14 1≤n≤10 14
output In the only output line, say whether Mr. Postchi's force will finally be grade 1 or not. If the force will be level 1, output "Yes" and if not, "No".
Example Sample entry 1 8 Plain text Sample output 1 Yes Plain text Sample input 2 3 Plain text Sample output 2 No
- Assistant
To determine if Mr. Postchi's power level will eventually be 1, we need to follow the rules given and see if we end up with the power level of 1 starting from the initial level ( n ).
Approach
- Odd Power Level: If Mr. Postchi's power level is odd, then the supplements will increase his power level from ( n ) to ( 3n + 3 ).
- : If his power level is even, then exercising will halve his power level to ( n/2 ).