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