#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n, k;
  cin >> n >> k;
  long long cur = n, kk = k;
  vector<long long> ans;
  for (long long i = 2; i * i <= cur && k > 1; i++) {
    while (n % i == 0 && k > 1) {
      ans.push_back(i);
      n /= i;
      k--;
    }
  }
  if (n > 1) ans.push_back(n);
  if (ans.size() == kk) {
    for (long long &i : ans) cout << i << " ";
  } else
    cout << -1 << endl;
}
