https://www.acmicpc.net/problem/5063
n=int(input()) for _ in range(n): r,e,c=map(int,input().split()) sum=e-c if r>sum: print("do not advertise") elif r<sum: print("advertise") else: print("does not matter")