atcoder#ABC227G. [ABC227G] Divisors of Binomial Coefficient

[ABC227G] Divisors of Binomial Coefficient

Score : 600600 points

Problem Statement

Find the number, modulo 998244353998244353, of positive divisors of a binomial coefficient (NK)\displaystyle \binom{N}{K}.

Constraints

  • 1N10121 \leq N \leq 10^{12}
  • 0Kmin(106,N)0 \leq K \leq \min(10^6,N)
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN KK

Output

Print the answer.

5 2
4

We have (52)=10\displaystyle \binom{5}{2}=10, which has four positive divisors: 1,2,5,101,2,5,10.

103 3
8

We have (1033)=176851\displaystyle \binom{103}{3}=176851, which has eight positive divisors.

1000000000000 1000000
110520107