#include <bits/stdc++.h>
using namespace std;
long long v1[30];
long long n, k;
int d(long long i, long long l) {
  for (long long j = 2; j <= i; j++) {
    if (i % j == 0) {
      l++;
      v1[l] = j;
      if (l == ((k - 1)) && (i / j != 1)) {
        v1[k] = i / j;
        for (long long a = 1; a <= k; a++) {
          cout << v1[a] << " ";
        }
        exit(0);
      } else if ((l == k) && ((i / j) == 1)) {
        for (long long a = 1; a <= k; a++) {
          cout << v1[a] << " ";
        }
        exit(0);
      }
      int g = d(i / j, l);
      l--;
    }
  }
  return 5;
}
int main() {
  cin >> n >> k;
  int g = d(n, 0);
  if (g == 5) {
    cout << "-1";
  }
  return 0;
}
