Given a natural number , let be the sum of the digits (in base 10) of . We say that is a perfect prime if the infinite sequence formed by , , , only contains prime numbers. For instance, is a perfect prime, because , as well as , , , , are prime numbers.
Each line of the input contains a number . A line with marks the end of the input.
For each
,
print in a line “yes” or “no”, depending on
whether
is a perfect prime or it is not.
Input
977 1 7 17 15999923 16000000 0
Output
yes no yes no yes no