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
#define mod 998244353
#define M 1000005
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;
}
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){return C(x+y,y)-C(x+y,x+t);}
int main()
{
	n=read(); m=read();
	if(m<n) return puts("0")&0;
	f[0]=1;
	for(register 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(register int i=m+n;i;--i) inv_f[i-1]=inv_f[i]*i%mod;
	for(register 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;
	}
	return printf("%lld",ans)&0;
}