#include<iostream>
#include<cmath>
using namespace std;
struct edge{
	int to, a, b;
};
int main(){
	long long p;cin>>p;

	for(long long i=1;i<10000;++i){
		long long x=p-i*i;
		if(x<0)break;
		long long t=sqrtl(x);
		if(t*t==x){
			cout<<"Yes"<<endl;
			return 0;
		}
	}

	cout<<"No"<<endl;
	return 0;

}