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