p = int(input()) ans = "No" for i in range(1,int(p**0.5)+1): j = int((p-i**2)**0.5) if i**2+j**2==p: ans = "Yes" print(ans)