Problem: Boy Dima gave Julian a birthday present — set B consisting of positive integers. However, he didn't know, that Julian hates sets, but enjoys bipartite graphs more than anything else!

Julian was almost upset, but her friend Alex said, that he can build an undirected graph using this set in such a way: let all integer numbers be vertices, then connect any two i and j with an edge if |i - j| belongs to B.

Unfortunately, Julian doesn't like the graph, that was built using B. Alex decided to rectify the situation, so he wants to erase some numbers from B, so that graph built using the new set is bipartite. The difficulty of this task is that the graph, Alex has to work with, has an infinite number of vertices and edges! It is impossible to solve this task alone, so Alex asks you for help. Write a program that erases a subset of minimum size from B so that graph constructed on the new set is bipartite.

Recall, that graph is bipartite if all its vertices can be divided into two disjoint sets such that every edge connects a vertex from different sets.

Input

First line contains an integer n ~ (1 ⩽ n ⩽ 200 000) — size of B

Second line contains n integers b_1, b_2, …, b_n ~ (1 ⩽ b_i ⩽ 10^{18}) — numbers of B, all b_i are unique

Output

In the first line print single integer k – the number of erased elements. In the second line print k integers — values of erased elements.

If there are multiple answers, print any of them.

Examples

Input


3
1 2 3


Output


1
2 

Input


2
2 6


Output


0

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <typename T>
T gcd(T a, T b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
template <typename T>
T pow(T a, T b, long long int m) {
  T ans = 1;
  while (b > 0) {
    if (b % 2 == 1) ans = ((ans % m) * (a % m)) % m;
    b /= 2;
    a = ((a % m) * (a % m)) % m;
  }
  return ans % m;
}
template <typename T>
void tracev(vector<T> &a) {
  for (auto &i : a) {
    cout << i << ' ';
  }
  cout << '\n';
}
template <typename T>
void tracevv(vector<T> &a) {
  for (auto &i : a) {
    tracev(i);
  }
}
template <typename T>
void tracevp(vector<T> &a) {
  for (auto &i : a) {
    cout << "i.ff"
         << ": " << i.first << " | "
         << "i.ss"
         << ": " << i.second << "\n";
    ;
  }
  cout << '\n';
}
bool comp(vector<long long int> &a1, vector<long long int> &a2) {
  return a1.size() > a2.size();
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n;
  cin >> n;
  vector<long long int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n == 1) {
    cout << "0\n";
    return 0;
  }
  vector<vector<long long int>> ans(1);
  ans[0].push_back(a[0]);
  for (int i = 1; i < n; i++) {
    bool f = false;
    for (int j = 0; j < ans.size(); j++) {
      long long int g = gcd(a[i], ans[j][0]);
      if (!((a[i] / g) % 2 == 0 || (ans[j][0] / g) % 2 == 0)) {
        ans[j].push_back(a[i]);
        f = true;
      }
    }
    if (!f) {
      ans.push_back({a[i]});
    }
  }
  sort(ans.begin(), ans.end(), comp);
  cout << n - ans[0].size() << '\n';
  for (int i = 1; i < ans.size(); i++) {
    for (int j = 0; j < ans[i].size(); j++) {
      cout << ans[i][j] << '\n';
    }
  }
  return 0;
}