#include <bits/stdc++.h>
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#pragma GCC target("avx2")
using namespace std;
const long long MOD = 1e9 + 7;
const double PI = atan2(0, -1);
const long long inf = 1e9 + 10;
const long long infl = 2e18;
const double eps = 1e-7;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> cnt(62);
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    long long x = 0;
    long long t = a[i];
    while (t % 2 == 0) {
      t /= 2;
      x++;
    }
    cnt[x]++;
  }
  long long ans = 0;
  for (long long i = 0; i < 60; i++)
    if (cnt[ans] < cnt[i]) ans = i;
  cout << n - cnt[ans] << '\n';
  for (long long i = 0; i < n; i++) {
    long long x = 0;
    long long t = a[i];
    while (t % 2 == 0) {
      t /= 2;
      x++;
    }
    if (x != ans) cout << a[i] << " ";
  }
}
