#include <bits/stdc++.h>
int main() {
  int n, i, a[100010], t, m, k;
  while (~scanf("%d%d", &n, &k)) {
    t = 0;
    if (k == 1)
      printf("%d\n", n);
    else {
      for (i = 2; i < n; i++) {
        while (n % i == 0) {
          a[t++] = i;
          n /= i;
          if (t == k - 1) break;
        }
        if (t == k - 1) break;
      }
      if (t == k - 1 && n != 1) {
        for (i = 0; i < t; i++) printf("%d ", a[i]);
        printf("%d\n", n);
      } else
        printf("-1\n");
    }
  }
  return 0;
}
