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