#include <bits/stdc++.h>
using namespace std;
long long x[1010], y[1010];
vector<int> a;
vector<int> b;
int main() {
  int n;
  scanf("%d", &n);
  long long g = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%lld%lld", &x[i], &y[i]);
  }
  while (!a.size() || !b.size()) {
    a.clear();
    b.clear();
    for (int i = 1; i <= n; i++) {
      if ((x[i] + y[i]) % 2 == 0)
        a.push_back(i);
      else
        b.push_back(i);
    }
    if (!a.size())
      for (int i = 1; i <= n; i++) x[i]++;
    for (int i = 1; i <= n; i++) {
      int xx = (x[i] + y[i]) / 2, yy = (x[i] - y[i]) / 2;
      x[i] = xx, y[i] = yy;
    }
  }
  cout << a.size() << endl;
  for (auto i : a) printf("%d ", i);
}
