test = int(input())
for _ in range(test):
r,e,c = map(int,input().split())
inv = e-c
if inv>r :
print("advertise")
elif inv == r :
print("does not matter")
else :
print("do not advertise")
어... 간단...한 문제인데 문제내용이 진짜 맥락어디갔냥