#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  bool flag = false;
  bool f = false;
  vector<int> v;
  for (int i = 2;; i++) {
    while (n % i == 0) {
      k--;
      if (k > 0) {
        v.push_back(i);
        n /= i;
        if (n <= 1) {
          flag = true;
          break;
        }
      } else {
        v.push_back(n);
        f = true;
        break;
      }
    }
    if (flag) break;
    if (f) break;
  }
  if (flag == true) {
    cout << -1;
  } else {
    for (auto x : v) cout << x << " ";
  }
  return 0;
}
