# -*- coding: utf-8 -*- N = int(input()) i = 1 pattern_list = [] while(i <= N//i): if N % i == 0: pattern_list.append(str(i) + str(N//i)) pattern_list.append(str(N//i) + str(i)) i += 1 print(len(set(pattern_list)))