n = int(input()) def make_divisors(n): divisors = [] square = 0 for i in range(1, int(n**0.5)+1): if n % i == 0: cur = [] if i != n // i: cur.append(n//i) cur.append(n//i) else: cur.append(i) cur.append(n//i) square += 1 divisors.append(cur) return 2*len(divisors) - square res = make_divisors(n) print(res)