#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
vector<pair<int, int> > vec;
void pridvs(int n) {
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      int cnt = 0;
      while (n % i == 0) {
        cnt++;
        n /= i;
      }
      vec.push_back(make_pair(i, cnt));
    }
  }
  if (n > 1) vec.push_back(make_pair(n, 1));
}
int main() {
  int n = read();
  pridvs(n);
  int flag = 0, maxx = 1, ans = 1, sum = 0;
  for (auto &e : vec) {
    while (maxx < e.second) {
      sum++;
      maxx <<= 1;
    }
    ans *= e.first;
  }
  for (auto &e : vec) {
    if (e.second != maxx) flag = 1;
  }
  cout << ans << " " << sum + flag << endl;
  return 0;
}
