#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
const int maxn = 2e5 + 100;
const int mod = 1e9 + 7;
int n;
vector<ll> v[70];
int mxPow(ll a) {
  int ret = 0;
  while (a % 2 == 0) a /= 2, ret++;
  return ret;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  cin >> n;
  pii mx = {0, 0};
  for (int i = 0; i < n; i++) {
    ll a;
    cin >> a;
    int m = mxPow(a);
    v[m].push_back(a);
    mx = max(mx, pii((int)v[m].size(), m));
  }
  cout << n - mx.first << "\n";
  for (int i = 0; i < 70; i++)
    if (i != mx.second) {
      for (ll j : v[i]) cout << j << " ";
    }
  cout << "\n";
  return 0;
}
