#include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MOD 1000000007 #define MOD2 998244353 #define INF (1<<29) #define LINF (1LL<<60) #define EPS (1e-10) #define PI 3.1415926535897932384626433832795028 typedef long long Int; typedef pair P; typedef long double Real; typedef complex CP; typedef pair T; Int n, x, y; vector points; bool no[550][550]; vector ans; int main(){ cin >> n; for(int i = 1;i <= n;i++){ cin >> x >> y; points.push_back({{x,y}, i}); } sort(points.begin(), points.end()); for(auto p:points){ x = p.first.first; y = p.first.second; int ind = p.second; if(no[x][y])continue; ans.push_back(ind); for(int i = -10;i <= 10;i++){ for(int j = -10;j <= 10;j++){ if(0 <= x+i && x+i < 550 && 0<= y + j && y + j < 550) if(i*i+j*j< 10*10) no[x+i][y+j] = true; } } } cout << ans.size() << endl; for(auto ind:ans)cout << ind << " ";cout << endl; return 0; }