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