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