#define _CRT_SECURE_NO_WARNINGS //#define _GLIBCXX_DEBUG #include using namespace std; typedef long long ll; typedef unsigned long long ull; //#define int ll //#define endl "\n" typedef vector vi; typedef vector vvi; typedef pair pii; #define all(c) (c).begin(), (c).end() #define loop(i,a,b) for(ll i=a; i ostream & operator<<(ostream & os, vector const &); template typename enable_if<(n>=sizeof...(T))>::type _ot(ostream &, tuple const &){} template typename enable_if<(n< sizeof...(T))>::type _ot(ostream & os, tuple const & t){ os << (n==0?"":" ") << get(t); _ot(os, t); } template ostream & operator<<(ostream & os, tuple const & t){ _ot<0>(os, t); return os; } template ostream & operator<<(ostream & os, pair const & p){ return os << "(" << p.first << ", " << p.second << ") "; } template ostream & operator<<(ostream & os, vector const & v){ rep(i,v.size()) os << v[i] << (i+1==(int)v.size()?"":" "); return os; } template inline bool chmax(T & x, T const & y){ return x inline bool chmin(T & x, T const & y){ return x>y ? x=y,true : false; } #ifdef DEBUG #define dump(...) (cerr<<#__VA_ARGS__<<" = "<> baq[20010/l][200010/l]; bool check(int x, int y){ int bx = x/l, by = y/l; for(int i=by-1;i<=by+1;i++){ for(int j=bx-1;j<=bx+1;j++){ for(auto & p : baq[i][j]){ int cx, cy; tie(cx,cy) = p; int dx = x-cx, dy = y-cy; int d2 = dx*dx + dy*dy; if(d2 < 400) return false; } } } return true; } int main(){ cin >> N; int ans = 0; assert(1 <= N && N <= 100000); rep(i,N){ int x,y; cin >> x >> y; assert(0 <= x && x <= 20000); assert(0 <= y && y <= 20000); // x += l; // y += l; // if(!check(x,y)) continue; // baq[y/l][x/l].eb(x,y); // ans++; } cout << ans << endl; }