#include <bits/stdc++.h>
using namespace std;
template <class t>
t mag(t a) {
  return a > 0 ? a : -a;
}
template <class T>
T cdiv(T num, T den) {
  return (num / den) + (num % den > 0);
}
std::ifstream term("/dev/tty");
std::string tempstring;
using ll = int_fast64_t;
using ii = pair<int, int>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<ii>;
int tc = 1;
const int sij = 400010;
const ll mod = 1000000007ll;
int n;
ll vec[sij];
int ans[70];
int escape(int tcase) {
  cin >> n;
  for (auto i = 0; i < n; i++) cin >> vec[i + 1];
  for (auto i = 0; i < n; i++) {
    ll tp = vec[i + 1], cnt = 0;
    while (tp % 2 == 0) {
      cnt++;
      tp /= 2;
    }
    ans[cnt]++;
  }
  int rt = max_element(ans, ans + 70) - ans;
  cout << n - *(ans + rt) << '\n';
  for (auto i = 0; i < n; i++) {
    ll tp = vec[i + 1], cnt = 0;
    while (tp % 2 == 0) {
      cnt++;
      tp /= 2;
    }
    if (cnt != rt) cout << vec[i + 1] << ' ';
  }
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  for (int i = 1; i <= tc; i++) escape(i);
}
