#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;
  int m = 70;
  vector<set<ll>> a(70);
  for (int i = 0; i < n; ++i) {
    ll x;
    cin >> x;
    int c = 0;
    ll y = x;
    while (y % 2 == 0) {
      y /= 2;
      ++c;
    }
    a[c].insert(x);
  }
  int j = 0;
  for (int i = 1; i < m; ++i)
    if ((int)(a[i]).size() > (int)(a[j]).size()) j = i;
  int rem = n - (int)(a[j]).size();
  cout << rem << "\n";
  for (int i = 0; i < m; ++i)
    if (i != j) {
      for (ll x : a[i]) cout << x << " ";
    }
  cout << "\n";
}
