n = int(input())count = 0
for a in range(1, n+1):if n % a == 0:b = n // aif a <= b and math.gcd(a, b) == 1:count += 1
print(count)
n = int(input())
count = 0
for a in range(1, n+1):
if n % a == 0:
b = n // a
if a <= b and math.gcd(a, b) == 1:
count += 1
print(count)