#!/usr/bin/env python3 import sys def getNumOfDividors(n: int) -> int: numOfDividors = 1 i = 2 while i * i <= n: ex = 0 while n % i == 0: ex += 1 n //= i if ex != 0: numOfDividors *= ex + 1 i += 1 if n != 1: numOfDividors *= 2 return numOfDividors def main(): N = int(input()) num = getNumOfDividors(N) p, q = divmod(num, 2) print(2 * p + q) return if __name__ == '__main__': main()