#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef vector VI; typedef vector VVI; typedef vector VL; typedef vector VVL; typedef long long LL; #define all(a) (a).begin(), (a).end() #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl #define YES(n) cout << ((n) ? "YES" : "NO" ) << endl #define ALL(a) (a).begin(),(a).end() #define pb push_back LL aaa; bool han(LL n){ LL m=sqrt(n*1.0)-10; m=max(m,LL(0)); rep(i,12){ if(m*m==n){ //cout<>k>>n; //cout< D; for(LL x=1;x<=1000;x++)for(LL y=1;y<=10000;y++){ LL p=x*x*x,q=y*y; p=p*p;q=q*q; LL nn=p+q; //if(x==3&&y==6){cout<