P = int(input()) table = [i**2 for i in range(1 << 15)] table_set = set(table) for t in table: if P - t in table_set: print('Yes') exit() print('No')