import math def factorize(n): d = {} temp = int(math.sqrt(n))+1 for i in range(2, temp): while n%i== 0: n //= i if i in d: d[i] += 1 else: d[i] = 1 if d == {}: d[n] = 1 else: if n in d: d[n] += 1 elif n != 1: d[n] =1 return d def cmb2(n, r, mod): res = 1 temp = 1 for k in range(1, r+1): res *= (n-k+1) temp *= k res %= mod temp %= mod res *= pow(temp,(mod-2),mod) res %= mod return res n, k = map(int, input().split()) mod = 10**9+7 D = factorize(n) ans = 1 for p, q in D.items(): ans *= cmb2(q+k, q, mod) ans %= mod print(ans)