#include int main() { int n; scanf("%d",&n); int ok = 0; for(int i=1; i<=10000 && !ok; i++) { for(int j=1; j<=10000 && !ok; j++) { int val = i*i + j*j; if(val > n) break; if(val == n) ok = 1; } } if(ok) printf("Yes"); else printf("No"); printf("\n"); }