#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, i, j, f = 0;
  scanf("%d%d", &n, &k);
  int a[k + 1];
  memset(a, 0, sizeof(a));
  for (i = 1; i < k; i++) {
    for (j = 2; j <= sqrt(n); j++) {
      if (n % j == 0) {
        n /= j;
        a[i] = j;
        f = 1;
        break;
      }
    }
    if (f == 0) {
      printf("-1\n");
      return 0;
    }
  }
  a[i] = n;
  for (i = 1; i <= k; i++) {
    if (a[i] == 0) {
      printf("-1\n");
      return 0;
    }
  }
  for (i = 1; i <= k; i++) printf("%d ", a[i]);
  return 0;
}
