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