Task
Time limit:
1000 ms,
Memory limit:
256 Mb
In their free time, chess players, in addition to playing football, tennis and other outdoor games, practice verbal counting. They call a three-digit number, the product of the digits of which is also a three-digit number.
Write a program that, according to the entered three-digit number, would output
YES if the product of its digits is a three-digit number, otherwise it is necessary to output
NO
Example 1
Input
111
Output
NO
Example 2
Input
999
Output
YES