#include <bits/stdc++.h>
using namespace std;
vector<long long> g;
vector<int> pot;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long a;
    cin >> a;
    g.push_back(a);
    int cont = 0;
    while (a % 2 == 0) {
      a /= 2;
      cont++;
    }
    pot.push_back(cont);
  }
  int freq[70] = {};
  int sz = -1;
  int at = -1;
  for (int i = 0; i < n; i++) {
    freq[pot[i]]++;
  }
  for (int i = 0; i < 70; i++) {
    if (freq[i] > sz) {
      sz = freq[i];
      at = i;
    }
  }
  cout << n - sz << endl;
  for (int i = 0; i < n; i++) {
    if (at == pot[i])
      continue;
    else
      cout << g[i] << " ";
  }
  cout << endl;
}
