#include <bits/stdc++.h>
using namespace std;
map<long long, int> m;
long long X[200005];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<long long> v;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    v.push_back(x);
    long long d = 0;
    while (x % (1LL << d) == 0) {
      d++;
    }
    m[d - 1]++;
    X[i] = d - 1;
  }
  int mx = -1;
  long long mxd = 0;
  for (auto& p : m) {
    if (p.second > mx) {
      mx = p.second;
      mxd = p.first;
    }
  }
  vector<long long> ans;
  for (int i = 0; i < n; i++) {
    if (X[i] != mxd) {
      ans.push_back(v[i]);
    }
  }
  cout << ans.size() << endl;
  for (auto& x : ans) {
    cout << x << " ";
  }
}
