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