#include <bits/stdc++.h>
using namespace std;
vector<long long> v[100];
int n;
long long tmp;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int cnt = 0;
    scanf("%I64d", &tmp);
    while (tmp % 2 == 0) {
      tmp >>= 1;
      cnt++;
    }
    v[cnt].push_back(tmp);
  }
  tmp = 0;
  for (int i = 1; i <= 64; i++)
    if (v[i].size() > v[tmp].size()) tmp = i;
  printf("%d\n", n - v[tmp].size());
  for (int i = 0; i <= 64; i++) {
    if (i == tmp) continue;
    for (int j = 0; j < v[i].size(); j++) printf("%I64d ", v[i][j] << i);
  }
}
