using System; using System.Linq; using System.Collections.Generic; class No537 { static void Main() { var num = Int32.Parse(Console.ReadLine()); var numI = num / 2; var list = new List(); var before = 0; var sameCount = 0; for (int i = 1; i < numI; ++i) { if (num % i==0) { if (before!=num/i) { list.Add(i); if (i == num / i) sameCount++; before = i; } else { break; } } } Console.WriteLine(list.Count*2-sameCount); } }