def factorize(x): ret = [] p = 2 while p * p <= x: cnt = 0 while x % p == 0: x //= p cnt += 1 if cnt: ret.append((p, cnt)) p += 1 if x > 1: ret.append((x, 1)) return ret MOD = 10 ** 9 + 7 from math import comb n, k = map(int, input().split()) ans = 1 for p, c in factorize(n): ans *= comb(c + k, c) ans %= MOD print(ans)