#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, k;
  cin >> n >> k;
  auto factorize = [](int n) {
    vector<int> res;
    int d = 2;
    while (d * d <= n) {
      while (n % d == 0) {
        n /= d;
        res.push_back(d);
      }
      d++;
    }
    if (n > 1) {
      res.push_back(n);
    }
    return res;
  };
  vector<int> f = factorize(n);
  if (f.size() < k) {
    cout << "-1\n";
  } else {
    for (int i = 0; i < k - 1; ++i) {
      cout << f[i] << ' ';
    }
    int last = 1;
    for (int i = k - 1; i < f.size(); ++i) {
      last *= f[i];
    }
    cout << last << '\n';
  }
  return 0;
}
