#include <bits/stdc++.h>
using namespace std;
const int nax = 300005;
long long n, m, a, k;
long long tmp = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  vector<long long> v(n);
  for (long long i = 0; i < n; i++) cin >> v[i];
  vector<long long> ans[63];
  for (long long i = 0; i < n; i++) {
    long long c = 0;
    long long x = v[i];
    while (x % 2 == 0) {
      c++;
      x /= 2;
    }
    ans[c].push_back(v[i]);
  }
  long long mx = 0;
  long long mxIn = 0;
  for (long long i = 0; i < 63; i++) {
    if (ans[i].size() > mx) {
      mx = ans[i].size();
      mxIn = i;
    }
  }
  cout << n - mx << endl;
  for (long long i = 0; i < 63; i++) {
    if (i != mxIn) {
      for (long long j = 0; j < ans[i].size(); j++) cout << ans[i][j] << " ";
    }
  }
  return 0;
}
