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