using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicorder537 { class Program { static void Main(string[] args) { // 入力 long N = long.Parse(Console.ReadLine()); // 割れる組み合わせの確認 var ans = divPattern(N); Console.WriteLine(ans); Console.ReadKey(); } static long divPattern(long N) { long cnt = 0; var max = N / 2; cnt += 2; // 1,N for (var i = 2; i <= max; i++) { if (N % i == 0) { cnt++; } } return cnt; } } }