#include <bits/stdc++.h>
using namespace std;
vector<int> fat;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  if (k == 1) return cout << n, 0;
  bool f = 1;
  for (int i = 2; i <= n, f; i++) {
    while (n % i == 0) {
      fat.push_back(i);
      if (n / i == 1) {
        f = 0;
        break;
      }
      if (fat.size() == k - 1) {
        fat.push_back(n / i);
        f = 0;
        break;
      }
      n = n / i;
      i = 2;
    }
  }
  if (fat.size() == k) {
    for (int i = 0; i < k; i++) {
      cout << fat[i] << " ";
    }
  } else
    cout << -1;
}
