#include <bits/stdc++.h>
using namespace std;
long long n, lista[500000], ima[1000], res = 0;
long long templista[500000];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> lista[i];
    long long temp = 0;
    long long x = lista[i];
    while (x % 2 == 0) {
      x /= 2;
      temp++;
    }
    ima[temp]++;
    templista[i] = temp;
  }
  long long temp = 0;
  res = -1;
  for (int i = 0; i <= 100; i++) {
    if (res < ima[i]) {
      temp = i;
      res = ima[i];
    }
  }
  cout << n - res << endl;
  for (int i = 1; i <= n; i++) {
    if (templista[i] != temp) cout << lista[i] << ' ';
  }
  return 0;
}
