#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 10;
int gi() {
  int x = 0, o = 1;
  char ch = getchar();
  while (!isdigit(ch) && ch != '-') ch = getchar();
  if (ch == '-') o = -1, ch = getchar();
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return x * o;
}
int n, ans[N], tt, x[N], y[N];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) x[i] = gi(), y[i] = gi();
  while (1) {
    tt = 0;
    for (int i = 1; i <= n; i++)
      if (abs(x[i] + y[i]) & 1) ans[++tt] = i;
    if (1 <= tt && tt < n) {
      cout << tt << '\n';
      for (int i = 1; i <= tt; i++) cout << ans[i] << ' ';
      return 0;
    } else {
      if (abs(x[1] + y[1]) & 1) {
        for (int i = 1; i <= n; i++) ++y[i];
      }
      for (int i = 1; i <= n; i++) {
        long long X = (x[i] + y[i]) / 2, Y = (x[i] - y[i]) / 2;
        x[i] = X;
        y[i] = Y;
      }
    }
  }
  return 0;
}
