We have a sequence of N integers: x=(x_0,x_1,\cdots,x_{N-1}). Initially, x_i=0 for each i (0 \leq i \leq N-1).

Snuke will perform the following operation exactly M times:

* Choose two distinct indices i, j (0 \leq i,j \leq N-1,\ i \neq j). Then, replace x_i with x_i+2 and x_j with x_j+1.



Find the number of different sequences that can result after M operations. Since it can be enormous, compute the count modulo 998244353.

Constraints

* 2 \leq N \leq 10^6
* 1 \leq M \leq 5 \times 10^5
* All values in input are integers.

Input

Input is given from Standard Input in the following format:


N M


Output

Print the number of different sequences that can result after M operations, modulo 998244353.

Examples

Input

2 2


Output

3


Input

3 2


Output

19


Input

10 10


Output

211428932


Input

100000 50000


Output

3463133
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod=998244353;
inline int add(int a,int b){a+=b;return a>=mod?a-mod:a;}
inline int sub(int a,int b){a-=b;return a<0?a+mod:a;}
inline int mul(int a,int b){return (ll)a*b%mod;}
inline int qpow(int a,int b){int ret=1;for(;b;b>>=1,a=mul(a,a))if(b&1)ret=mul(ret,a);return ret;}
/* math */
const int N = 4e6+5;
int fac[N],ifac[N];
inline void init(int n=4e6){
	fac[0]=ifac[0]=1;for(int i=1;i<=n;i++)fac[i]=mul(fac[i-1],i);
	ifac[n]=qpow(fac[n],mod-2);for(int i=n-1;i;i--)ifac[i]=mul(i+1,ifac[i+1]);
}
inline int binom(int a,int b){
	if(b>a)return 0;
	return mul(fac[a],mul(ifac[b],ifac[a-b]));
}
int n,m;

int main()
{
	init();
	cin >> n >> m;
	int dec1=mul(n, binom(m-1+n-1,n-1));
	int dec2=0;
	for(int d=0;d<=min(n,m);d++)if((m*3-d)%2==0){
		int w=binom(n,d);
		int d2=mul(w, binom((m*3-d)/2+n-1,n-1));
		// cout << " " << (m*3-d)/2 << endl;
		// cout << d << " " << w << " " << binom((m*3-d)/2+n-1,n-1) << endl;
		dec2=add(dec2,d2);
	}
	// cout << dec1 << " " << dec2 << endl;
	cout << sub(dec2,dec1) << endl;
}