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