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