#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> vec;
  int s = 1;
  if (k == 1) {
    cout << n << endl;
    return 0;
  }
  while (1) {
    int e = 0;
    for (int i = 2; i <= sqrt(n); i++) {
      if (n % i == 0) {
        s++;
        vec.push_back(i);
        if (s == k) {
          vec.push_back(n / i);
          e = 1;
          break;
        } else {
          n = n / i;
          e = 1;
          break;
        }
      }
    }
    if (e == 0) break;
    if (s == k) break;
  }
  if (s != k)
    cout << -1 << endl;
  else
    for (int i = 0; i < vec.size(); i++) cout << vec[i] << " ";
  cout << endl;
}
