LL f(int n) { LL res = 1; for (int i = 1; i <= n; i++) res *= i; return res; }
intmain() { while (scanf("%d", &x) != EOF) { int k = 0; for (int i = 2; i <= x / i; i++) { if (x % i == 0) fact[++k] = i; while (x % i == 0) { sum[k]++; x /= i; } } if (x != 1) fact[++k] = x, sum[k]++;
int tot = 0; for (int i = 1; i <= k; i++) tot += sum[i]; LL res = f(tot); for (int i = 1; i <= k; i++) res /= f(sum[i]); cout << tot << " " << res << endl;