#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  vector<long long> v;
  for (long long i = 2; i * i <= n; i++) {
    while (n % i == 0) {
      n /= i;
      v.push_back(i);
    }
  }
  if (n > 1) v.push_back(n);
  if (v.size() < k) {
    cout << -1 << "\n";
  } else {
    for (long long i = 0; i < k - 1; i++) {
      cout << v[i] << " ";
    }
    long long prod = 1;
    for (long long i = k - 1; i < v.size(); i++) {
      prod *= v[i];
    }
    cout << prod << " ";
  }
  return 0;
}
