#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, k;
  cin >> n >> k;
  vector<long long> ans;
  while (n % 2 == 0) {
    ans.push_back(2);
    n = n / 2;
  }
  for (long long i = 3; i <= sqrt(n); i = i + 2) {
    while (n % i == 0) {
      ans.push_back(i);
      n = n / i;
    }
  }
  if (n > 2) ans.push_back(n);
  if (ans.size() < k) {
    cout << -1 << endl;
    return;
  }
  for (long long i = 0; i < k - 1; i++) {
    cout << ans[i] << " ";
  }
  long long x = 1;
  for (long long i = k - 1; i < ans.size(); i++) {
    x *= ans[i];
  }
  cout << x << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long tests = 1;
  while (tests--) {
    solve();
  }
  return 0;
}
