#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> ans;
  if (k == 1) {
    printf("%d\n", n);
    return 0;
  }
  for (int i = 2; i * i <= n; i++) {
    while (n % i == 0) {
      n /= i;
      ans.push_back(i);
      if (((int)ans.size()) == k - 1) break;
    }
    if (((int)ans.size()) == k - 1) break;
  }
  if (n == 1 || ((int)ans.size()) != k - 1) {
    puts("-1");
    return 0;
  }
  ans.push_back(n);
  for (int x : ans) printf("%d ", x);
  puts("");
  return 0;
}
