#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; auto calc=[&](Int x,Int y){return (x+1000)*30000+(y+1000);}; unordered_set sp; using P = pair; vector

dz; for(Int i=-100;i<=100;i++) for(Int j=-100;j<=100;j++) if(i*i+j*j<400) dz.emplace_back(i,j); Int cnt=0; for(Int i=0;i>x>>y; Int flg=0; for(auto p:dz) flg|=sp.count(calc(x+p.first,y+p.second)); if(flg) continue; cnt++; sp.emplace(calc(x,y)); } cout<