#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, t, l = 0, k = 0, y = 0, x = 0, sum = 0, count = 0,
                         count1 = 0, count5 = 0, count2 = 0, len = 0, m = 0,
                         n = 0, a = 0, z = 0;
  long long int array[40000];
  cin >> x >> y;
  n = x;
  for (i = 1; i < y; i++) {
    for (j = 2; j < x; j++) {
      if (x % j == 0) {
        array[i] = j;
        x = x / j;
        k = x;
        break;
      }
    }
  }
  for (i = y - 1; i >= 1; i--) {
    x = x * array[i];
    m = x;
  }
  if (y == 1) {
    cout << x << endl;
  } else if (m == n) {
    for (j = y - 1; j >= 1; j--) {
      cout << array[j] << " ";
    }
    cout << k << endl;
  } else {
    cout << "-1" << endl;
  }
}
