LearnPy Hub
← Arena
EasyRating 1000

Automorphic Number

A number is automorphic if its square ends with the number itself (like 76² = 5776). Print YES or NO.

Input

One integer n (1 ≤ n ≤ 10⁹).

Output

YES or NO.

Sample 1

Input
76
Output
YES

Sample 2

Input
5
Output
YES
solution.py
Output appears here
Automorphic Number · Python Arena problem · LearnPy Hub