#include <bits/stdc++.h>
using namespace std;
long long s[200000 + 10], cnt[200000 + 10], z[100];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  while (cin >> n) {
    long long maxx = 0, mcnt;
    memset(cnt, 0, sizeof(cnt));
    memset(z, 0, sizeof(z));
    for (int i = 0; i < n; i++) cin >> s[i];
    for (int i = 0; i < n; i++) {
      long long num, x = 0;
      num = s[i];
      while (num % 2 == 0) {
        x++;
        num >>= 1;
      }
      z[x]++;
      cnt[i] = x;
      if (z[x] > maxx) {
        maxx = z[x];
        mcnt = x;
      }
    }
    if (maxx == n) {
      cout << 0 << "\n";
      continue;
    }
    cout << n - maxx << "\n";
    for (int i = 0; i < n; i++) {
      if (cnt[i] != mcnt) cout << s[i] << " ";
    }
    cout << "\n";
  }
  return 0;
}
