#include using namespace std; int N; const int MAX_XY = 20040; bool overlap(int y1, int x1, int y2, int x2){ return (y1 - y2) * (y1 - y2) + (x1 - x2) * (x1 - x2) < 400; } bool on_board[MAX_XY][MAX_XY]; int res; int main(){ cin >> N; for (int i = 0; i < N; i++){ int x,y; cin >> x >> y; bool ok = true; for (int Y = max(0, y - 20); Y <= y + 20; Y++){ for (int X = max(0, x - 20); X <= x + 20; X++){ if (on_board[Y][X]){ if (overlap(y, x, Y, X)){ ok = false; } } } } if (ok){ on_board[y][x] = true; res++; } } cout << res << endl; return 0; }