#include <bits/stdc++.h>
using namespace std;
signed main() {
  unsigned long long n;
  cin >> n;
  vector<unsigned long long> vec(n, 0);
  for (unsigned long long i = 0; i < n; i++) cin >> vec[i];
  unsigned long long p = 0, ans = 0;
  for (unsigned long long i = 0; i < 64; i++) {
    unsigned long long a = 1;
    a <<= i;
    unsigned long long cnt = 0;
    for (unsigned long long j = 0; j < n; j++) {
      if (vec[j] % a == 0 and (vec[j] / a) % 2 != 0) cnt++;
    }
    if (cnt > ans) {
      ans = cnt;
      p = a;
    }
  }
  cout << n - ans << endl;
  for (unsigned long long i = 0; i < n; i++) {
    if (vec[i] % p == 0 and (vec[i] / p) % 2 != 0)
      ;
    else
      cout << vec[i] << " ";
  }
  cout << endl;
}
