import java.io.*; import java.util.*; public class Main { static int m; static long k; static int[] values; static int[] times; static int length; static int ans = 0; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); k = sc.nextInt(); m = sc.nextInt(); HashMap counts = new HashMap<>(); for (int i = 2; i <= Math.sqrt(n); i++) { while (n % i == 0) { counts.put(i, counts.getOrDefault(i, 0) + 1); n /= i; } } if (n > 1) { counts.put(n, counts.getOrDefault(n, 0) + 1); } int idx = 0; length = counts.size(); values = new int[length]; times = new int[length]; for (int x : counts.keySet()) { values[idx] = x; times[idx] = counts.get(x); idx++; } check(0, 1); System.out.println(ans); } static void check(int idx, long v) { if (idx >= length) { ans++; return; } for (int i = 0; i <= times[idx] * k && v <= m; i++) { check(idx + 1, v); v *= values[idx]; } } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public String next() throws Exception { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }