#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int ans = 1;
  int u = n;
  for (int i = 2; i <= n; i++) {
    if (u % i == 0) ans *= i;
    while (u % i == 0) u /= i;
    if (u == 1) break;
  }
  int cnt = 0;
  u = ans;
  while (1) {
    if (u % n == 0) break;
    cnt++;
    u *= u;
  }
  if (n != u) cnt++;
  cout << ans << " " << cnt << endl;
  return 0;
}
