#include <bits/stdc++.h>
using namespace std;
mt19937_64 rang(
    chrono::high_resolution_clock::now().time_since_epoch().count());
long long rng(long long l) {
  uniform_int_distribution<long long> uid(0, l - 1);
  return uid(rang);
}
long long c(long long a) {
  long long i = 0;
  while (!(a & 1)) {
    i++;
    a >>= 1;
  }
  return i;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.precision(10);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  long long n;
  cin >> n;
  long long a[n];
  long long b[n];
  long long cn[65] = {};
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
    b[i] = c(a[i]);
    cn[b[i]]++;
  }
  long long ii = 0;
  for (long long i = 0; i < 65; ++i) {
    if (cn[ii] < cn[i]) {
      ii = i;
    }
  }
  cout << n - cn[ii] << "\n";
  for (long long i = 0; i < n; ++i) {
    if (b[i] != ii) {
      cout << a[i] << " ";
    }
  }
}
