This page is still under construction.

Parts of this page are still being built. What you see may change.

TGN Advertising Decision

Interview

Time limit1sMemory limit128 MB

Summary
For each test case, compare the no-ad revenue r against e minus c, then print advertise, do not advertise, or does not matter.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Sang-geun is the CEO of TGN. TGN looks like it stands for Teenager Game Network, but it actually stands for Temporary Group Name.

The company builds apps for teenagers. After a full year of development the app is finally finished, and all that is left is to sell it.

Sang-geun spends an enormous amount on dates, so he wants to maximize his revenue by advertising wisely. One day he gained the ability to predict, in advance, the effect of an advertisement.

For each app you are given the revenue without advertising, the revenue with advertising, and the advertising cost. Write a program that decides whether advertising is worth it.

The final revenue when advertising is (revenue with advertising) −- (advertising cost). If this value is greater than the revenue without advertising, advertise; if it is smaller, do not advertise; if they are equal, it does not matter.

Input

The first line contains the number of test cases NN. Each of the next NN lines contains three integers rr, ee, and cc, where rr is the revenue without advertising, ee is the revenue with advertising, and cc is the advertising cost. (−106≤r,e≤106-10^6 \le r, e \le 10^6, 0≤c≤1060 \le c \le 10^6)

Output

For each test case, print a single line: advertise if advertising is worth it, do not advertise if it is not, and does not matter if advertising makes no difference to the revenue.

Examples4

  1. Example 1

    Input
    3
    0 100 70
    100 130 30
    -100 -70 40
    
    Expected output
    advertise
    does not matter
    do not advertise
    
  2. Example 2

    Input
    1
    0 100 50
    
    Expected output
    advertise
    
  3. Example 3

    Input
    1
    100 100 1
    
    Expected output
    do not advertise
    
  4. Example 4

    Input
    1
    50 50 0
    
    Expected output
    does not matter