#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> vi;
  scanf("%d", &n);
  int Min = 30, Max = 0, ans;
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      int counter = 0;
      while (n % i == 0) {
        n /= i;
        counter++;
      }
      vi.push_back(i);
      Min = min(counter, Min);
      Max = max(counter, Max);
    }
  }
  if (n > 1) {
    vi.push_back(n);
    Min = min(Min, 1);
    Max = max(Max, 1);
  }
  for (int i = 0;; i++) {
    if ((1 << i) >= Max) {
      if (Min < (1 << i))
        ans = 1;
      else
        ans = 0;
      ans += i;
      break;
    }
  }
  int num = 1, sz = vi.size();
  for (int i = 0; i < sz; i++) {
    num *= vi[i];
  }
  printf("%d %d\n", num, ans);
}
