# -*- coding: utf-8 -*- N = int(input()) i = 1 ans = {} while i*i<=N: if N%i==0: q = N//i id_1 = str(i) + str(q) id_2 = str(q) + str(i) ans[id_1] = 1 ans[id_2] = 1 i += 1 print(len(ans))