long n,s[9999],i,k,t,x;main(j){for(scanf("%ld",&n);x||i*i++