import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) n = int(input()) #alist = list(map(int,input().split())) #alist = [] #s = input() #n,m = map(int,input().split()) #for i in range(n): # alist.append(list(map(int,input().split()))) check = set() for i in range(1,10**4+100): check.add(i**2) for i in range(1,10**4+100): x = n - i**2 if x in check: print('Yes') exit() print('No')