# -*- coding: utf-8 -*- ''' 64//2 = 32などのケースが引っ掛け ''' N = int(input()) i = 1 ans = 0 while i*i<=N: if N%i==0: q = N//i id_1 = str(i) + str(q) id_2 = str(q) + str(i) ans += 1 if id_1==id_2 else 2 i += 1 print(ans)