MWINNER - Who Won the Match

no tags 

In IPL-5, there will be an element of mystery - scores will not be disclosed. Hence, fans will have to wait till the presentation ceremony to know who won the match. Since you are the anchor, both teams score are submitted to you. Now you have to announce which team has won the match and by how many runs.

The details provided to you are team's acronym and their scores. Output the result containing winning team name and the difference.

Input

First line of the input contains the number T < 1000 (number of test cases). Test cases start from the next line. Each test case has two lines with the details of one team. Each line has team name, less than or equal to three characters, followed by a space and then the score of the team (<= 400).

Output

For every test case, give the output in following manner: "TEAM won by R runs".

In case of a tie, give the output: "MATCH DRAW"

(quotes are for clarity)

Example

Input:
3
RCB 250
MI 254
DC 128
KKR 84
CSK 180
DD 180
Output: MI won by 4 runs
DC won by 44 runs
MATCH DRAW


Added by:Rajesh Kumar
Date:2012-03-17
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK BC C-CLANG C NCSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET