#yuki_537 n=int(raw_input()) res=set() for i in xrange(1,int(n**0.5)+1): if n%i==0: res.add(str(i)+str(n/i)) res.add(str(n/i)+str(i)) print len(res)