#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  vector<ll> a(n);
  map<ll, vector<ll>> mp;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    ll x = a[i], cnt = 0;
    while (!(x & 1)) {
      cnt++;
      x /= 2;
    }
    mp[cnt].push_back(a[i]);
  }
  int ans = -1;
  vector<ll> mx;
  for (auto &i : mp) {
    int td = i.second.size();
    if (td > ans) {
      ans = td;
      mx = i.second;
    }
  }
  map<ll, bool> ok;
  for (int i = 0; i < mx.size(); i++) ok[mx[i]] = true;
  cout << n - ans << '\n';
  for (int i = 0; i < n; i++)
    if (!ok[a[i]]) cout << a[i] << ' ';
  cout << '\n';
  return 0;
}
