#include #include #define MAX 1000000000 using namespace std; typedef long long ll; int main(void){ ll n,m; cin>>n>>m; if(n<1000){ cout<<0<0) s1*=m-i+1; s1%=MAX; s2*=i; s2%=MAX; } cout<<(s1/s2)%MAX<