#include<bits/stdc++.h> #define SINGLE_INPUT #define ll long long #define ull unsigned long long #define N 500005 #define MOD 998244353 usingnamespace std;
voidsol(){ ll n; cin >> n; vector<ll> cnt(100), a(n); ll mx = 0; for (ll i = 0; i < n; i++) { cin >> a[i]; ll c = 0; for (ll j = a[i]; j % 2 == 0; j >>= 1) c++; mx = max(mx, ++cnt[c]); } cout << n - mx << "\n"; int p = 0; for (ll i : a) { ll c = 0; for (ll j = i; j % 2 == 0; j >>= 1) c++; if (cnt[c] == mx) { p = c; break; } } for (ll i : a) { ll c = 0; for (ll j = i; j % 2 == 0; j >>= 1) c++; if (c != p) { cout << i << " "; } } }