#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target( \
    "avx,avx2,fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
long long MOD = 1e9 + 7;
long long INF = 1e18;
long long a[1000][1000];
long long yes[1000];
vector<long long> st[70];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),
      cout << fixed << setprecision(20);
  long long n;
  cin >> n;
  vector<long long> b(n);
  set<long long> bbb;
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    bbb.insert(b[i]);
    long long bb = b[i];
    long long stt = 0;
    while (bb % 2 == 0) {
      bb /= 2;
      stt++;
    }
    st[stt].push_back(b[i]);
  }
  long long ans = 0;
  for (int i = 0; i < 70; i++) {
    if (st[i].size() > ans) {
      ans = (long long)st[i].size();
    }
  }
  cout << n - ans << "\n";
  for (int i = 0; i < 70; i++) {
    if (st[i].size() == ans) {
      for (auto j : st[i]) {
        bbb.erase(j);
      }
      for (auto j : bbb) {
        cout << j << " ";
      }
      return 0;
    }
  }
}
