https://www.acmicpc.net/problem/5063
using System;
class Program
{
static void Main() {
int n=int.Parse(Console.ReadLine());
for(int i=0;i<n;i++){
string[] s=Console.ReadLine().Split(' ');
int r=int.Parse(s[0]);
int e=int.Parse(s[1]);
int c=int.Parse(s[2]);
int sum=e-c;
if(r>sum) Console.WriteLine("do not advertise");
else if(r<sum) Console.WriteLine("advertise");
else Console.WriteLine("does not matter");
}
}
}