import sys p = int(input()) i, j = [1, 1] while i*i <= p: j = 1 while j*j <= p: print(f'iは{i}, jは{j}') if i*i + j*j == p: print("Yes") sys.exit() j += 1 i += 1