P = int(input()) ans = "No" for i in range(1,P+1): if i*i >= P: break j2 = P - i*i j = pow(j2, 0.5) if j%1 == 0: ans = "Yes" break print(ans)