Question
Product Quest
Rohan, a puzzle lover, enjoys playing with his number chart. He can multiply any two numbers from 1 to 9 (inclusive) to get a result. Given a positive integer K, check if K can be formed by multiplying two such numbers. Print "Yes" if possible, or "No" if not.
Input
The first line of the input contains a single integer K.
Output
If K can be represented as the product of two integers between 1 and 9 (inclusive), print "Yes", otherwise print "No".
Example
Sample Input
10
Sample Output
Yes
Explanation
10 can be represented as the product of 2 integers, between 1 and 9 inclusive which are 2 and 5.

Online