import strutils, tables, math let N = stdin.readLine.parseInt var i = 1 dic = initCountTable[string]() while i ^ 2 <= N: if N mod i == 0: let j = N div i dic.inc $i & $j dic.inc $j & $i i += 1 echo dic.len