#include #include int main(){ int n,x=1,y=1,z=1,w,d,ans=0; scanf("%d%d",&n,&d); for(x=1;x*x+y*y+z*z