#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  vector<long long> vt[65];
  long long x, y;
  int t;
  for (int i = 1; i <= n; ++i) {
    t = 0;
    scanf("%lld", &x);
    for (y = x; y % 2 == 0; y /= 2, ++t)
      ;
    vt[t].push_back(x);
  }
  int ans = n + 1, id = 0;
  for (int i = 0; i <= 64; ++i)
    if (n - int(vt[i].size()) < ans) {
      id = i;
      ans = n - vt[i].size();
    }
  printf("%d\n", ans);
  for (int i = 0; i <= 64; ++i)
    if (i != id) {
      for (t = 0; t < int(vt[i].size()); ++t) printf("%lld ", vt[i][t]);
    }
}
