# coding: utf-8 # Your code here! def main(): s=[0, 1, 4, 9, 16, 21, 24, 25, 29, 36, 41, 44, 49, 56, 61, 64, 69, 76, 81, 84, 89, 96] a=input() if int(a[len(a)-2:]) in s: print("YES") else: print("NO") main()