#include using namespace std; #define int long long #define rep(i,n) for(int i=0;i<(n);i++) #define REP(i,a,b) for(int i=(a);i<(b);i++) #define pb push_back #define all(v) (v).begin(),(v).end() typedef vectorvi; const int INF=1001001001001001001ll; int comb[3000][3000]; signed main(){ comb[0][0]=1; for(int i=1;i<3000;i++){ comb[i][0]=comb[i][i]=1; for(int j=1;j>Q; while(Q--){ int d,x,t; cin>>d>>x>>t; if(comb[x+d-1][d-1]>t)cout<<"ZETUBOU"<