#include using namespace std; typedef long long ll; typedef pair pii; #define FOR(i,a,n) for(int i=a;i<(int)(n);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() #define MP(a,b) make_pair(a,b) #define PB(a) push_back(a) #define F first #define S second const int INF = 2000000000; const int DX[4]={0,1,0,-1}, DY[4]={-1,0,1,0}; struct P{int x;int y;P(int X=0,int Y=0){x=X;y=Y;}}; bool p[20001][20001]; int main() { memset(p,0,sizeof(p)); int N; cin >> N; int ans = 0; REP(i,N) { int x,y; cin >> x >> y; bool f=true; ans++; FOR(a,y-20,41) { FOR(b,x-20,41) { if(a>=0 && a<20000 && b>=0 && b<20000) { if(p[a][b]) { double d = sqrt(pow(y-a,2)+pow(x-b,2)); if(d<20) { f=false; ans--; goto next; } } } } } next:; p[y][x]=f; } cout << ans << endl; return 0; }