#include <bits/stdc++.h>
#pragma GCC optimize "-O3"
using namespace std;
int check(int o1) {
  for (int i = 2; i <= sqrt(o1); ++i) {
    if (o1 % i == 0) return i;
  }
  return 0;
}
void solve() {
  long long n = 0, m = 0, k = 0, ans = 0;
  vector<int> v;
  scanf("%d%d", &n, &m);
  k = n;
  if (m == 1) {
    cout << n;
    return;
  }
  while (1) {
    if (check(k)) v.push_back(check(k)), ans++, k /= check(k);
    if (ans == m)
      break;
    else if (ans == m - 1 || !check(k)) {
      v.push_back(k);
      break;
    }
  }
  if (v.size() == m)
    for (auto i : v) cout << i << ' ';
  else
    cout << -1;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int T = 1;
  while (T--) {
    solve();
    cout << '\n';
  }
  cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
}
