#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
const int maxn = 200005;
const long long Mod = 1000000007;
long long a[maxn], c[maxn], v[maxn];
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  ;
  int n;
  cin >> n;
  int ans, da = -1;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    c[i] = __builtin_ctzll(a[i]);
    v[c[i]]++;
    if (v[c[i]] > da) {
      da = v[c[i]];
      ans = c[i];
    }
  }
  cout << n - da << endl;
  for (int i = 0; i < n; i++) {
    if (c[i] != ans) cout << a[i] << ' ';
  }
  cout << endl;
  return 0;
}
