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