#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << "\n";
  err(++it, args...);
}
const long long zop = 100, pix = 2 * 1e5 + 100;
int32_t main() {
  fast();
  long long n;
  cin >> n;
  long long b[pix], a[pix], pox[pix] = {0}, cnt[zop] = {0};
  for (long long i = 0; i < n; i++) {
    cin >> b[i];
    a[i] = b[i];
    while (b[i] % 2 == 0) {
      b[i] /= 2;
      pox[i]++;
    }
    cnt[pox[i]]++;
  }
  long long foo = max_element(cnt, cnt + zop) - cnt;
  long long bar = 0;
  for (long long i = 0; i < n; i++) {
    if (pox[i] != foo) bar++;
  }
  cout << bar << "\n";
  for (long long i = 0; i < n; i++) {
    if (pox[i] != foo) cout << a[i] << " ";
  }
}
