#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> ans;
  while (ans.size() < k - 1) {
    bool flag = false;
    for (long long int i = 2; i * i <= n; i++) {
      if (n % i == 0) {
        ans.push_back(i);
        flag = true;
        n /= i;
        break;
      }
    }
    if (!flag) break;
  }
  ans.push_back(n);
  if (ans.size() < k) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < ans.size(); i++) {
    if (ans[i] == 1) {
      cout << -1;
      return 0;
    }
  }
  for (auto it : ans) {
    cout << it << " ";
  }
  return 0;
}
