#include <bits/stdc++.h>
using namespace std;
vector<int> factors(int n) {
  vector<int> v;
  int i = 2;
  while (n > 1) {
    if (n % i == 0) {
      while (n % i == 0) {
        n = n / i;
        v.push_back(i);
      }
    }
    i++;
  }
  return v;
}
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> fact = factors(n);
  if (fact.size() < k) {
    cout << -1 << endl;
    return 0;
  }
  for (int i = 0; i < k - 1; i++) {
    cout << fact[i] << " ";
  }
  long long int ans = 1;
  for (int i = k - 1; i < fact.size(); i++) {
    ans *= fact[i];
  }
  cout << ans << endl;
  return 0;
}
