#include <bits/stdc++.h>
using namespace std;
double log2(double a) {
  if (a <= 1) return 0;
  return 1 + log2(a / 2.0);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  int a = n;
  vector<pair<int, double> > fact;
  for (int i = 2; i * i <= n and a != 1; i++) {
    double j = 0;
    while (a % i == 0) {
      j++;
      a /= i;
    }
    if (j) {
      fact.push_back({i, j});
    }
  }
  if (a != 1 and a * a == n) {
    fact.push_back({a, 2});
  } else if (a != 1) {
    fact.push_back({a, 1});
  }
  int count = 0;
  for (int i = 0; i < fact.size(); i++) {
  }
  double mmax = 0;
  for (int i = 0; i < fact.size(); i++) {
    mmax = max(mmax, log2(fact[i].second));
  }
  int x = pow(2, mmax);
  bool f = false;
  for (int i = 0; i < fact.size(); i++) {
    if (fact[i].second != x) {
      f = true;
    }
  }
  if (f) mmax++;
  int ans = 1;
  for (int i = 0; i < fact.size(); i++) {
    ans *= fact[i].first;
  }
  cout << ans << " " << mmax << "\n";
  return 0;
}
