#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t;
cin>>t;
long long n, m, k, p;
for (int i=1; i<=t; i++){
cin>>n>>m>>k>>p;
if (k>m) {
cout<<"Divide"<<endl;//人数不够每队人数
continue;
}
int cnt=p/m, tmp=p%m;
if (m-cnt>=k){
cout<<"Together"<<endl;//鸽巢定理?本人按此思路写的,但是听说要贪心?
}else {
cout<<"Chance"<<endl;
}
}
return 0;
}
赛时代码,样例已过,but0pts求条