#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i, ans = 1;
  cin >> n;
  for (i = 2; i * i <= n; i++) {
    long long c = 0;
    while (n % i == 0) {
      n /= i;
      c++;
    }
    if (c) {
      v.push_back(c);
      ans *= i;
    }
  }
  if (n > 1) {
    v.push_back(1);
    ans *= n;
  }
  sort(v.begin(), v.end());
  cout << ans << " ";
  if (v.size() == 0 || v.back() == 1)
    cout << 0 << endl;
  else if (v[0] == v.back() && ((v[0] & (v[0] - 1)) == 0)) {
    cout << log2(v[0]) << endl;
  } else {
    for (i = 0;; i++)
      if ((1 << i) >= v.back()) break;
    cout << i + 1 << endl;
  }
}
