def aa(n): import math tn = int(math.sqrt(n)) while n % tn != 0: tn -= 1 return tn, n // tn n = int(input()) minT = 0 for a in aa(n): minT += sum(aa(a)) print(minT - 4, n - 1)