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 LL long long
using namespace std;
int read(){
    char ch=getchar(); int w=1,c=0;
    for (;!isdigit(ch);ch=getchar()) if (ch=='-') w=-1;
    for (;isdigit(ch);ch=getchar()) c=(c<<3)+(c<<1)+(ch^48);
    return w*c;
}
const int mod=998244353,M=1e6+10;
LL f[M],inv_f[M],ans;
int n,m;
LL fast(LL x,LL p){
	LL res=1;
	for (;p;p>>=1,x=x*x%mod) if (p&1) res=res*x%mod;
	return res;
}
LL C(int n,int m){
	if (m>n) return 0;
	return f[n]*inv_f[m]%mod*inv_f[n-m]%mod;
}
LL calc(int x,int y,int t){
//	cout<<x<<" "<<y<<" "<<t<<"\n";
//	cout<<C(x+y,x)<<" "<<C(x+y,x+t)<<"\n";
	return C(x+y,y)-C(x+y,x+t);
}
int main(){
    n=read(); m=read();
    if (m<n) {
    	cout<<0<<"\n";
    	return 0;
	}
    f[0]=1;
    for (int i=1;i<=m+n;i++){
    	f[i]=f[i-1]*i%mod;
	}
	inv_f[m+n]=fast(f[m+n],mod-2);
	for (int i=m+n;i;i--) inv_f[i-1]=inv_f[i]*i%mod;
	
//	cout<<C(4,4)<<" "<<f[4]<<" "<<inv_f[2]<<" "<<"\n";
//
//	cout<<8*inv_f[2]%mod<<"\n";
	
	for (int i=0;i<=m;i++){
		int R=i,B=m-i;
		if (R==B) ans=(ans+calc(R,B-1,R-n+1)+mod)%mod;
		if (R>B) ans=(ans+calc(R,B,R-n+1)+mod)%mod;
	}
	cout<<ans<<"\n";
    return 0;
}