#include <bits/stdc++.h>
const int maxn = 21;
int a[maxn * 1000];
int main() {
  int n, k;
  while (scanf("%d%d", &n, &k) != EOF) {
    int cnt = 0;
    for (int i = 2; i <= n; i++) {
      while (n % i == 0) {
        n /= i;
        a[cnt++] = i;
      }
    }
    if (cnt < k)
      printf("-1\n");
    else {
      for (int i = k; i < cnt; i++) a[k - 1] *= a[i];
      for (int i = 0; i < k; i++) printf("%d ", a[i]);
      printf("\n");
    }
  }
}
