#include <bits/stdc++.h>
using namespace std;
template <typename T, typename S>
ostream& operator<<(ostream& os, pair<T, S> input) {
  os << "(" << input.first << ", " << input.second << ")";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, vector<T> input) {
  for (auto t : input) os << t << " ";
  return os;
}
map<long long, multiset<long long> > m;
long long power2(long long x) {
  int ans = 0;
  while (x % 2 == 0) x /= 2, ans++;
  return ans;
}
long long a[200003];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long long x;
    cin >> x;
    a[i] = x;
    long long p = power2(x);
    m[p].insert(i);
  }
  long long max_val = 0;
  for (auto p : m) {
    max_val = max(max_val, (long long)p.second.size());
  }
  multiset<long long> take;
  for (auto p : m) {
    if ((int)p.second.size() == max_val) {
      take = p.second;
      break;
    }
  }
  cout << n - (int)take.size() << "\n";
  for (int i = 1; i <= n; i++) {
    if (take.find(i) == take.end()) cout << a[i] << " ";
  }
  cout << "\n";
  return 0;
}
