trials = int(input())
ans = []
for i in range(trials):
    case = input()
    r,e,c = map(int,case.split(" "))
    if(r+c <e):
        ans.append("advertise")
    elif(r+c==e):
        ans.append("does not matter")
    elif(r+c >e):
        ans.append("do not advertise")
for j in ans:
    print(j)

61a824c77f98c50d5e2c092dbb9211669f46704d
<mask token>

<mask token>
for i in range(trials):
    case = input()
    r, e, c = map(int, case.split(' '))
    if r + c < e:
        ans.append('advertise')
    elif r + c == e:
        ans.append('does not matter')
    elif r + c > e:
        ans.append('do not advertise')
for j in ans:
    print(j)

trials = int(input())
ans = []
for i in range(trials):
    case = input()
    r, e, c = map(int, case.split(' '))
    if r + c < e:
        ans.append('advertise')
    elif r + c == e:
        ans.append('does not matter')
    elif r + c > e:
        ans.append('do not advertise')
for j in ans:
    print(j)

trials = int(input())
ans = []
for i in range(trials):
    case = input()
    r,e,c = map(int,case.split(" "))
    if(r+c <e):
        ans.append("advertise")
    elif(r+c==e):
        ans.append("does not matter")
    elif(r+c >e):
        ans.append("do not advertise")
for j in ans:
    print(j)
