//POJ3030 1.0
#include<iostream>
using namespace std;
int main(){
int n;
cin >> n;
for (int i=0;i<n;i++){
long r,e,c;
cin >> r >> e >> c;
long f;
f = e-c-r;
if(f>0) cout << "advertise" << endl;
if(f<0) cout << "do not advertise" << endl;
if(f==0) cout << "does not matter" << endl;
}
return 0;
}