using System; public class Hello { public static void Main() { var n = long.Parse(Console.ReadLine().Trim()); var n2 = (int)Math.Sqrt(n); var ans = 0; for (int i = 1; i <= n2; i++) if (n % i == 0) ans += check(n / i, i); Console.WriteLine(ans); } public static int check (long a, int b) { var a1 = a.ToString(); var b1 = b.ToString(); if (a1 + b1 == b1 + a1) return 1; else return 2; } }