P = int(input()) for i in range(1, P+1): if i * i <= P: j = (P - i*i) ** (0.5) if j * j + i * i == P: print("Yes") exit() print("No")