#include <bits/stdc++.h>
using namespace std;
long long n, zx[200007], z, b, a[200007], k[64], mx, nm;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> b;
    z = (b & ((~b) + 1));
    z = trunc(log2(z));
    k[z]++;
    a[i] = b;
    zx[i] = z;
    if (k[z] > mx) {
      mx = k[z];
      nm = z;
    }
  }
  cout << n - mx << endl;
  for (int i = 1; i <= n; i++)
    if (zx[i] != nm) cout << a[i] << ' ';
}
