#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s = 0, nr = 0, i;
  cin >> n;
  while (int(sqrt(n)) == sqrt(n) && n > 1) {
    n = sqrt(n);
    s++;
  }
  for (i = sqrt(n); i > 1; i--)
    while (n % (i * i) == 0) {
      n /= i;
      s++;
      nr = 1;
    }
  cout << n << " " << s + nr;
}
