https://www.acmicpc.net/problem/5063
import java.util.*
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt()
for(i in 0 until n){
var r=s.nextInt()
var e=s.nextInt()
var c=s.nextInt()
var sum=e-c
if(r>sum) println("do not advertise")
else if(r<sum) println("advertise")
else println("does not matter")
}
}