#include <bits/stdc++.h>
using namespace std;
constexpr int N = 1e3 + 5;
int n, x[N], y[N];
vector<int> ki;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  for (int i = n - 1; i >= 0; i--) x[i] -= x[0], y[i] -= y[0];
  while (ki.empty()) {
    for (int i = 1; i < n; i++)
      if ((x[i] + y[i]) % 2) ki.push_back(i + 1);
    if (ki.empty())
      for (int i = 1; i < n; i++)
        if (x[i] % 2) ki.push_back(i + 1);
    for (int i = 0; i < n; i++) x[i] /= 2, y[i] /= 2;
  }
  cout << ki.size() << '\n';
  for (int i = 0; i < ki.size(); i++)
    cout << ki[i] << " \n"[i == ki.size() - 1];
}
