#include <bits/stdc++.h>
using namespace std;
int rep[1000100];
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "1 0\n";
    return 0;
  }
  long long res = 1, res1 = 0;
  int mx = 0;
  int k = 0;
  for (int i = 2; i <= n; i++) {
    if (n % i != 0) continue;
    int r = 0;
    while (n % i == 0) {
      n /= i;
      r++;
    }
    mx = max(mx, r);
    rep[k++] = r;
    res *= i;
  }
  bool ok = 1;
  for (int i = 0; i < k; i++) {
    if (rep[i] != mx) {
      ok = 0;
      break;
    }
  }
  if (ok) {
    int mx2 = mx;
    while (mx2 != 1) {
      if (mx2 % 2 != 0) {
        ok = 0;
        break;
      }
      mx2 /= 2;
    }
  }
  if (!ok) {
    res1++;
  }
  long long mm = 1;
  for (int i = 0;; i++) {
    if (mm >= mx) {
      res1 += i;
      break;
    }
    mm *= 2;
  }
  cout << res << " " << res1 << endl;
  return 0;
}
