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