using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_537 { class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); long count = 0; for(int i = 1; i <= Math.Sqrt(n); i++) { if (n % i == 0) { count++; } } long[,] a = new long[count, 2]; for(int i = 0; i < count; i++) { if (i == 0) { a[i, 0] = 1; a[i, 1] = n; } else { for (long k = a[i - 1, 0] + 1; k <= Math.Sqrt(n); k++) { if (n % k == 0) { a[i, 0] = k; a[i, 1] = n / k; break; } } } } string[] s = new string[count * 2]; for(int i = 0; i < count; i++) { s[i * 2] = a[i, 0].ToString() + a[i, 1].ToString(); s[i * 2 + 1] = a[i, 1].ToString() + a[i, 0].ToString(); } long total = count*2; for(int i = 0; i < count * 2 - 1; i++) { for(int k = i + 1; k < count * 2; k++) { if (s[i].Equals(s[k])) { total--; } } } Console.WriteLine(total); Console.ReadLine(); } } }