#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(0);
  long long n, k;
  cin >> n >> k;
  long long d = 2;
  vector<long long> v;
  while (d <= n && k) {
    if (k == 1) d = n;
    if (n % d == 0) {
      n /= d;
      v.push_back(d);
      k--;
    } else
      d++;
  }
  if (k == 0) {
    for (auto s : v) cout << s << " ";
    cout << endl;
    ;
  } else
    cout << -1 << endl;
}
