R=range
n=int(input())
P,t=set(),n
for i in R(2,min(n+1,9**4)):
	if t%i<1:P.add(i)
	while t%i<1:t//=i
D=[t]*(t>1)
def G(a,b):
	while a:a,b=b%a,a
	return b
while D:
	t=D.pop()
	c=int(t**0.25)*9
	if t<9**8:P.add(t)
	else:
		while c:
			x,d=c,1
			y=(x*x+1)%t
			while(d<2)*c:x,y,d,c=(x*x+1)%t,(y**4+2*y*y+2)%t,G(abs(x-y),t),c-1
			if d<t and c:t//=d;c=G(t,d);D+=[t//c,d//c,c];break
		else:P.add(t)
P.discard(1)
P=list(P)
L=1
C=0
for i in R(len(P)):
	p,c=P[i],0
	while n%p<1:n//=p;c+=1
	P[i]=[p,c]
	L+=c
	C=max(c,C)
D=[[s<1]*(s+1)for s in R(C+1)]
for l in R(L):
	t=[[0]for s in R(C+1)]
	for s in R(C+1):
		for d in R(s+1):t[s]+=[t[s][-1]+D[s][d]]
	D=[[t[s-d][min(s-d,d)+1]for d in R(s+1)]for s in R(C+1)]
a=1
for[p,c]in P:a*=t[c][c+1]
print(a)