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