a=int(input()) for i in range(1,3): for j in range(1,3): if i**2+j**2==a: print("Yes") exit() print("No")