#include <bits/stdc++.h>
using namespace std;
const int maxn = 6e5 + 10;
int a[maxn];
int b[maxn];
int32_t main() {
  int n;
  cin >> n;
  int tot = 0;
  if (n == 1) {
    cout << 1 << " " << 0 << endl;
    return 0;
  }
  for (int i = 2; i <= n; i++) {
    if (n % i == 0) {
      int t = 0;
      while (n % i == 0) n = n / i, t++;
      a[++tot] = t;
      b[tot] = i;
    }
  }
  int num = 1;
  for (int i = 1; i <= tot; i++) {
    num = num * b[i];
  }
  bool k = 1;
  for (int i = 2; i <= tot; i++)
    if (a[i] != a[i - 1]) k = 0;
  int maxt = 0;
  for (int i = 1; i <= tot; i++)
    if (a[i] > maxt) maxt = a[i];
  if (k == 1) {
    if (maxt == 1) {
      cout << num << " " << 0 << endl;
    } else {
      int t = a[1];
      while (a[1] % 2 == 0) {
        a[1] = a[1] / 2;
      }
      if (a[1] == 1) {
        int x = log(t + 0.5) / log(2);
        cout << num << " " << x << endl;
      } else {
        int x = log(t + 0.5) / log(2) + 2;
        cout << num << " " << x << endl;
      }
    }
  } else {
    int k = maxt;
    int t = maxt;
    while (maxt % 2 == 0) {
      maxt = maxt / 2;
    }
    if (maxt == 1) {
      int x = log(k + 0.5) / log(2) + 1;
      cout << num << " " << x << endl;
    } else {
      int x = log(k + 0.5) / log(2) + 2;
      cout << num << " " << x << endl;
    }
  }
}
