#include <bits/stdc++.h>   using namespace std;   inline long long read() {     long long x = 0, f = 0;     char ch = getchar();     while (!isdigit(ch)) f |= (ch ==  - ), ch = getchar();     while (isdigit(ch)) x = x * 10 + ch -  0 , ch = getchar();     return f ? -x : x;   }   inline void write(long long x) {     if (x < 0) x = -x, putchar( - );     if (x >= 10) write(x / 10);     putchar(x % 10 +  0 );   }   long long n, a[200005], tot[200005], tong[105], mx, mxat, now;   signed main() {     n = read();     for (register long long i = 1; i <= n; i++) {       a[i] = read();       now = a[i];       while (now && now % 2 == 0) {         tot[i]++;         now /= 2;       }       tong[tot[i]]++;       if (tong[tot[i]] > mx) mx = tong[tot[i]], mxat = tot[i];     }     write(n - mx);     puts(  );     for (register long long i = 1; i <= n; i++)       if (tot[i] != mxat) write(a[i]), putchar(   );     return 0;   }   