#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "1 0" << endl;
    return 0;
  }
  int mn = 1e9;
  int mx = 0;
  int final = 1;
  for (int i = 2; n > 1; i++) {
    if (n % i == 0) {
      final *= i;
      int cnt = 0;
      while (n % i == 0) {
        n /= i;
        cnt++;
      }
      mx = max(mx, cnt);
      mn = min(mn, cnt);
    }
  }
  int pw = 1;
  int ans = 0;
  while (pw < mx) {
    pw *= 2;
    ans++;
  }
  if (mn != pw) ans++;
  cout << final << " " << ans << endl;
  return 0;
}
