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