#P10993. Equal Digits after Multiplication by 37
Equal Digits after Multiplication by 37
Equal Digits after Multiplication by 37
Given a natural number (a), compute (37 \times a) and determine whether all the digits of the result are identical. For example, if (a = 3), then (37 \times 3 = 111), and since all digits are the same, the answer is YES.
inputFormat
A single natural number (a) is provided as input.
outputFormat
Print YES if all the digits of (37 \times a) are identical, otherwise print NO.
sample
1
NO