#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  k--;
  vector<long long> dop;
  for (long long c = 2; c * c <= n; c++) {
    while (n % c == 0 && k) {
      n /= c;
      dop.push_back(c);
      k--;
    }
  }
  dop.push_back(n);
  if (k) {
    cout << -1;
    return 0;
  }
  if (n == 1) {
    cout << -1;
    return 0;
  }
  for (auto i : dop) cout << i << " ";
  return 0;
}
