#include <bits/stdc++.h>
using namespace std;
long long n, a[200010], mark[200010];
vector<int> cnt(60, 0);
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    scanf("%I64d", a + i);
    if (a[i] % 2 == 1)
      cnt[0]++;
    else {
      long long cnt1 = 0;
      long long s = a[i];
      while (s % 2 == 0) {
        cnt1++;
        s = s >> 1;
      }
      mark[i] = cnt1;
      cnt[cnt1]++;
    }
  }
  int ans = 0;
  int mark1 = 0;
  for (int i = 0; i < 60; i++) {
    if (cnt[i] > ans) {
      ans = cnt[i];
      mark1 = i;
    }
  }
  cout << n - ans << "\n";
  for (int i = 0; i < n; i++) {
    if (mark[i] != mark1) cout << a[i] << " ";
  }
}
