#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int N, M, A, x; cin >> N >> M >> A; set st, st2; vector v; for (int i=0; i> A; st.insert(A); } st2 = st; while(!st.empty()){ x = *st.begin(); for (int i=x; i<=M; i+=x){ if (!st2.count(i)){ cout << -1 << endl; return 0; } st.erase(i); } v.push_back(x); } cout << v.size() << endl; for (auto x : v) cout << x << " "; cout << endl; return 0; }