using System; using System.Collections.Generic; namespace test { static class Program { static void Main() { string[] a = Console.ReadLine().Split(' '); long b = long.Parse(a[0]); long c = long.Parse(a[1]); long count = 0; for(long i = c;i <= b; i += c) { if(b%i==0)count++; } Console.WriteLine(count); } } }