#include <bits/stdc++.h>
using namespace std;
int a[100000];
int main() {
  int n, k, cnt = 0, j = 0;
  cin >> n >> k;
  for (int i = 2; n > 1; i++) {
    if (cnt == k) break;
    while (n % i == 0 && cnt != k - 1) {
      if ((n / i) <= 1) {
        a[j] = n;
        n /= i;
      } else {
        n = n / i;
        a[j] = i;
      }
      j++;
      cnt++;
    }
    if (cnt == k - 1 && n > 1) {
      a[j] = n;
      cnt++;
    }
  }
  if (cnt != k)
    cout << "-1" << endl;
  else {
    for (int i = 0; i < cnt; i++) {
      cout << a[i] << " ";
    }
  }
}
