#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int N, K;
  cin >> N >> K;
  vector<int> Divs;
  for (int i = 2; i < N; i++) {
    while (N % i == 0 && K > 1) {
      Divs.push_back(i);
      N /= i;
      K--;
    }
  }
  N > 1 ? Divs.push_back(N), K-- : K += 0;
  if (K == 0)
    for (auto i : Divs) cout << i << " ";
  else
    cout << -1;
}
