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