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