Problem 1031 --The Smartest Guy in HHU

1031: The Smartest Guy in HHU

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 23  Solved: 13
[Submit][Status][Web Board][Creator:]

Description

Alice and Bob are all very smart guys in HHU and one day they asked Calvin to tell who is smarter. However later that day Alice came to Calvin Neo, gave him some money and asked him to hard point(钦定) her to be the smarter. Because the money was so much that Calvin no longer need to move bricks(搬砖) to feed himself so they made a transaction.
The next day, Calvin introduce a game to Alice and Bob. In this game, Alice and Bob take turns to multiply an integer p by integer from 2 to 9. In each round, Alice always starts with p = 1, does her multiplication, then Bob multiplies the number, then Alice and so on. Before a game starts, Calvin decides an integer 1 < n < 4294967295 and the winner is who first reaches p >= n. Because both Alice and Bob are smart, so they all play perfectly.
Calvin has some n, please help him decide which of them can make Alice win.

Input

one line for one case with a integer n

Output

"yes" if Alice can win, "no" otherwise

Sample Input

162
17
34012226

Sample Output

yes
no
yes

HINT

Source

[Submit][Status]