using System; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); //1~Nまで割り算をして、個数を求める int count = 0; for (int i = 1; i <= N; i++) { if (N % i == 0) { count++; } } //出力 Console.WriteLine(count); } }