#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int ok[10000];
  int n, k;
  while (cin >> n >> k) {
    int now = 0;
    for (int i = 2; i <= n; i++) {
      while (n % i == 0) {
        ok[now++] = i;
        n /= i;
      }
    }
    if (now < k) {
      printf("-1\n");
    } else {
      for (int i = k; i < now; i++) {
        ok[k - 1] *= ok[i];
      }
      for (int i = 0; i < k; i++) {
        if (i) printf(" ");
        printf("%d", ok[i]);
      }
    }
    printf("\n");
  }
  return 0;
}
