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