#include using namespace std; int main(){ int G[500][500]; auto inside = [&](int a, int b){ return a>=0 && a<500 && b>=0 && b<500; }; vector> SS = {{-1, -4}, {4, 5}}; int num[] = {1, 2, 3, 4, 5, 5, 5, 5, 5, 4, 3, 2, 1}; for(auto [SX, SY] : SS){ for(int sx=SX; sx<=600; sx+=10) for(int sy=SY; sy<=600; sy+=18){ int g = 0; for(int ay=0; ay<13; ay++){ int n = num[ay]; for(int ax=1-n; ax<=n; ax++){ int i = sx+ax, j = sy+ay; if(inside(i, j)) G[i][j] = g; g++; } } } } vector vs[90]; int N; cin >> N; for(int i=0; i> x >> y; vs[G[x-1][y-1]].push_back(i); } int opt = 0; for(int g=0; g<90; g++) if(vs[opt].size() < vs[g].size()) opt = g; cout << vs[opt].size() << endl; for(int a : vs[opt]) cout << a+1 << " "; cout << endl; return 0; }