ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

2102. Michael and Cryptography

Time limit: 2.0 second
Memory limit: 64 MB
The hacker Michael develops breakthrough password manager, which is called KEK (Keeper of Encrypted Keys). A distinctive feature of KEK is excellent security. To achieve this, Michael had to develop innovative encryption scheme. For example, in the well-known RSA scheme the sum of prime powers in the factorization is equal to 2, whereas in Michael’s scheme this sum is equal to 20!
However, the current version of the KEK runs very slow. Michael has found out that the problem is in the function of checking a modulus for correctness. This function should take the number n and answer, whether the sum of prime powers included in the factorization of n is equal to 20. Can you do this quickly?
Remember that the factorization of an integer is the representation of it in the form like p1α1 · p2α2 · ... · pkαk, where pi are prime numbers, and αi > 0. It is known that such representation is unique. Then the sum of powers looks like α1 + α2 + ... + αk.

Input

The only line contains an integer n (1 ≤ n ≤ 1018).

Output

If the sum of prime powers, included in the factorization of n, is equal to 20, then output “Yes”, otherwise output “No”.

Samples

inputoutput
2
No
1048576
Yes
10000000000
Yes
Problem Author: Vladimir Leskov
Problem Source: Ural FU Junior Championship 2016