Sarthak and Anuradha are very good friends and are eager to participate in an event called Equinox. It is a game of words. In this game, N strings S1,…,SN are given. For each string Si, if it starts with one of the letters of the word “EQUINOX”, Sarthak gets A points and if not, Anuradha gets B points. The one who has more points at the end of the game wins. If they both the same number of points, the game is a draw..
Print the winner of the game, if any, otherwise print “DRAW”.
The first line contains an integer T, the number of test cases. Then the test cases follow. The first line of each test case contains three integers N, A, B. N lines follow, each containing a string Si. All strings are in UPPERCASE.
For each test case, print “SARTHAK” if he has more points than Anuradha, print “ANURADHA” if she has more points than Sarthak, otherwise print “DRAW” , without the quotes.
- 1≤T≤100
- 1≤N≤100
- 1≤A, B≤109
- 1≤|Si|≤100
- 2
- 4 1 3
- ABBBCDDE
- EARTH
- INDIA
- UUUFFFDDD
- 2 5 7
- SDHHD
- XOXOXOXO
- DRAW
- ANURADHA