https://www.acmicpc.net/problem/5063
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
for(int i=0;i<n;i++){
int r=s.nextInt();
int e=s.nextInt();
int c=s.nextInt();
int sum=e-c;
if(r>sum) System.out.println("do not advertise");
else if(r<sum) System.out.println("advertise");
else System.out.println("does not matter");
}
}
}