#include <bits/stdc++.h>
using namespace std;
unordered_map<long long, long long> mp;
int32_t main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n;
  cin >> n;
  long long a[n + 3];
  for (long long i = (long long)(1); i <= (long long)(n); i++) {
    cin >> a[i];
    mp[a[i] & -a[i]]++;
  }
  long long mx = 0, id;
  for (auto it : mp) {
    if (it.second > mx) {
      mx = it.second;
      id = it.first;
    }
  }
  cout << n - mx << "\n";
  for (long long i = (long long)(1); i <= (long long)(n); i++) {
    if ((a[i] & -a[i]) != id) cout << a[i] << " ";
  }
}
