Problem: In Republic of AtCoder, Snuke Chameleons (Family: Chamaeleonidae, Genus: Bartaberia) are very popular pets. Ringo keeps N Snuke Chameleons in a cage.

A Snuke Chameleon that has not eaten anything is blue. It changes its color according to the following rules:

* A Snuke Chameleon that is blue will change its color to red when the number of red balls it has eaten becomes strictly larger than the number of blue balls it has eaten.
* A Snuke Chameleon that is red will change its color to blue when the number of blue balls it has eaten becomes strictly larger than the number of red balls it has eaten.



Initially, every Snuke Chameleon had not eaten anything. Ringo fed them by repeating the following process K times:

* Grab either a red ball or a blue ball.
* Throw that ball into the cage. Then, one of the chameleons eats it.



After Ringo threw in K balls, all the chameleons were red. We are interested in the possible ways Ringo could have thrown in K balls. How many such ways are there? Find the count modulo 998244353. Here, two ways to throw in balls are considered different when there exists i such that the color of the ball that are thrown in the i-th throw is different.

Constraints

* 1 \leq N,K \leq 5 \times 10^5
* N and K are integers.

Input

Input is given from Standard Input in the following format:


N K


Output

Print the possible ways Ringo could have thrown in K balls, modulo 998244353.

Examples

Input

2 4


Output

7


Input

3 7


Output

57


Input

8 3


Output

0


Input

8 10


Output

46


Input

123456 234567


Output

857617983

Solution (in CPP):

Solution:
#include<bits/stdc++.h>
#define rep(i,a,b) for(register int i=a;i<=b;++i)
#define rpd(i,a,b) for(register int i=a;i>=b;--i)
#define rep1(i,x) for(register int i=head[x];i;i=nxt[i])
typedef long long ll;
const int N=5e5+5;
const ll Mod=998244353LL;
using namespace std;
inline int read(){
    int x=0,f=1;char ch=getchar();
    while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();}
    while(isdigit(ch)){x=x*10+ch-'0';ch=getchar();}
    return x*f;
}
ll pow(ll x,ll k){
    if(k==0)return 1LL;
    if(k==1LL)return x;
    ll t=pow(x,k/2LL);t*=t;t%=Mod;
    if(k&1)t*=x,t%=Mod;
    return t;
}
int n,K;ll inv[N];ll ans;
ll C(int i,int j){
    if(i<j)return 0;
    if(i==j)return 1LL;
    ll ans=inv[i];
    ans*=pow(inv[j],Mod-2LL);ans%=Mod;
    ans*=pow(inv[i-j],Mod-2LL);ans%=Mod;
    return ans;
}
int main(){
    n=read();K=read();
    inv[1]=1LL;rep(i,2,K)(inv[i]=inv[i-1]*1LL*i)%=Mod;
    rpd(i,K,n){
        int R=i,B=K-i,T=R-(n-1);if(R<B)break;
        if(T>B){(ans+=C(K,R))%=Mod;continue;}
        if(R!=B){(ans+=((C(K,R)-C(K,R+T))%Mod+Mod)%Mod)%=Mod;continue;}
        (ans+=((C(K-1,R)-C(K-1,R+T))%Mod+Mod)%Mod)%=Mod;;
    }
    printf("%lld\n",ans);
    //system("pause");
    return 0;
}