#include <bits/stdc++.h>
using namespace std;
template <typename T>
T MAX(T a, T b) {
  return (a > b) ? a : b;
}
template <typename T>
T MIN(T a, T b) {
  return (a < b) ? a : b;
}
template <typename T>
void UMAX(T &a, T b) {
  a = (a > b ? a : b);
}
template <typename T>
void UMIN(T &a, T b) {
  a = (a < b ? a : b);
}
int readint() {
  char c = getchar();
  int ret = 0;
  while (!(c >= '0' && c <= '9')) c = getchar();
  while (c >= '0' && c <= '9') {
    ret = ret * 10 + c - '0';
    c = getchar();
  }
  return ret;
}
void putint(int v) {
  if (!v) {
    putchar('0');
    return;
  }
  if (v >= 10) putint(v / 10);
  putchar('0' + (v % 10));
}
int n;
pair<int, int> ps[1005];
long long gd(pair<int, int> A, pair<int, int> B) {
  long long dx = (long long)A.first - (long long)B.first,
            dy = (long long)A.second - (long long)B.second;
  return dx * dx + dy * dy;
}
int rt(long long v) {
  int ret = 0;
  while (!(v & 1ll)) {
    ++ret;
    v /= 2ll;
  }
  return ret;
}
vector<int> adj[1005];
int col[1005];
int main() {
  int i, j, k;
  scanf("%d", &n);
  for (i = 0; i < n; ++i) {
    scanf("%d%d", &(ps[i].first), &(ps[i].second));
  }
  int mnr = 1000;
  for (i = 0; i < n; ++i) {
    for (j = i + 1; j < n; ++j) {
      UMIN(mnr, rt(gd(ps[i], ps[j])));
    }
  }
  for (i = 0; i < n; ++i) {
    for (j = i + 1; j < n; ++j) {
      if (rt(gd(ps[i], ps[j])) == mnr) {
        col[j] = 1 - col[i];
      }
    }
  }
  int cnt = 0;
  for (i = 0; i < n; ++i) {
    if (!col[i]) ++cnt;
  }
  printf("%d\n", cnt);
  for (i = 0; i < n; ++i) {
    if (!col[i]) printf("%d ", i + 1);
  }
  printf("\n");
  return 0;
}
