#include <bits/stdc++.h>
using namespace std;
vector<int> fac;
bool solve(int n, int k) {
  if (k == 1) {
    fac.push_back(n);
    return 1;
  }
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      fac.push_back(i);
      return solve(n / i, k - 1);
    }
  }
  return false;
}
int main() {
  int n, k;
  cin >> n >> k;
  if (solve(n, k)) {
    for (int i = 0; i < k; i++) {
      cout << fac[i] << " ";
    }
    cout << endl;
  } else {
    cout << -1 << endl;
  }
  return 0;
}
