#include <bits/stdc++.h>
using namespace std;
const int maxn = 200020;
int n, idx, cnt;
long long b[maxn];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> b[i];
  for (int i = 0; i < 60; i++) {
    long long c = 1LL << i;
    long long cc = c << 1;
    int tmp = 0;
    for (int j = 0; j < n; j++) {
      if (b[j] % c == 0 && b[j] % cc) tmp++;
    }
    if (tmp > cnt) {
      idx = i;
      cnt = tmp;
    }
  }
  cout << n - cnt << endl;
  for (int i = 0; i < n; i++) {
    long long c = 1LL << idx;
    long long cc = c << 1;
    if (!(b[i] % c == 0 && b[i] % cc)) {
      cout << b[i] << " ";
    }
  }
  return 0;
}
