#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0, f = 0;
  scanf("%d", &n);
  while (int(sqrt(n)) == sqrt(n) && n > 1) {
    ans++;
    n = sqrt(n);
  }
  for (int i = sqrt(n); i > 1; i--) {
    while (n % (i * i) == 0) {
      ans++;
      n /= i;
      f = 1;
    }
  }
  printf("%d %d\n", n, ans + f);
}
