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