import math n=int(input()) v=[] for i in range(1,n+1): if (n*n)%i==0: v.append(i) ans=0 for d in v: for e in v: if e