#include using namespace std; vector> mesh[510][510]; int main() { auto overlap = [](pair P, pair Q) { int dx = P.first - Q.first, dy = P.second - Q.second; return dx * dx + dy * dy < 400; }; auto out = [&](pair P) { int i = P.first / 40, j = P.second / 40; bool flag = false; for (int k = max(0, i - 1); k <= i + 1; k++) { for (int l = max(0, j - 1); l <= j + 1; l++) { for (auto& Q : mesh[k][l]) { flag |= overlap(P, Q); } } } return flag; }; int N, ans = 0; cin >> N; while (N--) { pair P; cin >> P.first >> P.second; if (out(P)) continue; else { int i = P.first / 40, j = P.second / 40; mesh[i][j].emplace_back(P); ans++; } } cout << ans << endl; }