#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
long long a[N], cnt[N], num[N];
int main() {
  long long n, mx = 0;
  scanf("%I64d", &n);
  for (long long i = (1); i <= (n); ++i) {
    scanf("%I64d", &a[i]);
    long long tmp = a[i];
    while (tmp && tmp % 2 == 0) tmp /= 2, cnt[i]++;
    num[cnt[i]]++;
  }
  for (long long i = (1); i <= (63); ++i)
    if (num[i] > num[mx]) mx = i;
  printf("%I64d\n", n - num[mx]);
  for (long long i = (1); i <= (n); ++i)
    if (cnt[i] != mx) printf("%I64d ", a[i]);
  return 0;
}
