#include #include #include using namespace std; int N, X[250009], Y[250009]; int col[509][509]; bool used[509][509]; vector ans; int main() { cin >> N; for (int i = 1; i <= N; i++) { cin >> X[i] >> Y[i]; col[X[i]][Y[i]] = i; } for (int i = 1; i <= 500; i++) { for (int j = 1; j <= 500; j++) { if (col[i][j] == 0 || used[i][j] == true) continue; ans.push_back(col[i][j]); for (int k = -10; k <= 10; k++) { for (int l = -10; l <= 10; l++) { if (k * k + l * l >= 100) continue; int sx = i + k, sy = j + l; if (sx <= 0 || sx > 500 || sy <= 0 || sy > 500) continue; used[sx][sy] = true; } } } } cout << ans.size() << endl; for (int i = 0; i < ans.size(); i++) { if (i) cout << " "; cout << ans[i]; } cout << endl; return 0; }