#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) { cout << endl; }
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << " ";
  err(++it, args...);
}
template <typename T>
inline void read(T& x) {
  x = 0;
  T f = 1;
  char ch = getchar();
  while (!isdigit(ch)) f = (ch == '-') ? -1 : 1, ch = getchar();
  while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar();
  x *= f;
}
template <typename T, typename... Args>
inline void read(T& x, Args&... args) {
  read(x), read(args...);
}
constexpr long long MAXN = 3e5 + 5, MOD = 1e9 + 7;
long long n;
array<long long, MAXN> b, cnt, num;
vector<long long> vec;
signed main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  ;
  cin >> n;
  for (long long i = 1; i <= n; i++) cin >> b[i];
  for (long long i = 1; i <= n; i++) {
    long long tmp = b[i];
    while (tmp && tmp % 2 == 0) {
      cnt[i]++;
      tmp /= 2;
    }
    num[cnt[i]]++;
  }
  long long pos = max_element(num.begin(), num.end()) - num.begin();
  cout << n - num[pos] << "\n";
  for (long long i = 1; i <= n; i++)
    if (cnt[i] != pos) cout << b[i] << "\n";
  return 0;
}
