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 $S_{1},\ldots, S_{N}$ are given. For each string $S_{i}$, 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”.

------ Input ------

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 $S_{i}$.
All strings are in UPPERCASE.

------ Output ------
For each test case, print “SARTHAK” (case insensitive) if he has more points than Anuradha, print “ANURADHA” (case insensitive) if she has more points than Sarthak, otherwise print “DRAW” (case insensitive), without the quotes.

------ Constraints  ------
$1 ≤ T ≤ 100$
$1 ≤ N ≤ 100$
$1 ≤ A$, $B ≤ 10^{9}$
$1 ≤ |S_{i}\right| ≤ 100$

------ Subtasks ------
Subtask #1 (100 points): original constraints

----- Sample Input 1 ------ 
2
4 1 3
ABBBCDDE
EARTH
INDIA
UUUFFFDDD
2 5 7
SDHHD
XOXOXOXO
----- Sample Output 1 ------ 
DRAW
ANURADHA
----- explanation 1 ------ 
Test case $1$: The strings which start with one of the letters of the word EQUINOX are $\{$ EARTH, INDIA, UUUFFFDDD $\}$. Thus, Sarthak gets $1$ point for each of these strings. In total, Sarthak gets $3$ points.  
On the other hand, there is one string that does not start with one of the letters of the word EQUINOX. Thus, Anuradha gets $3$ points for that string.  
Finally, since both of them have equal points, the game results in DRAW.

Test case $2$: There is only one string that starts with one of the letters of the word EQUINOX which is XOXOXOXO. Thus, Sarthak gets $5$ point for this string.
There is one string that does not start with one of the letters of the word EQUINOX. Thus, Anuradha gets $7$ points for that string.  
Finally, Anuradha has the higher score. So she is the winner.

Source: codechef | Difficulty: EASY
Tags: Implementation


Solutions:
t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split())
	scount = 0
	acount = 0
	for i in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			scount += a
		else:
			acount += b
	if scount > acount:
		print('SARTHAK')
	elif scount < acount:
		print('ANURADHA')
	else:
		print('DRAW')


for i in range(int(input())):
	(n, a, b) = map(int, input().split())
	(sarthak, anuradha) = (0, 0)
	for i in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			sarthak = sarthak + a
		else:
			anuradha = anuradha + b
	if sarthak > anuradha:
		print('SARTHAK')
	elif sarthak < anuradha:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, t, a) = map(int, input().split())
	sarthak = 0
	anu = 0
	l = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	for i in range(n):
		s = input()
		if s[0] in l:
			sarthak += t
		else:
			anu += a
	if sarthak > anu:
		print('SARTHAK')
	elif anu > sarthak:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
for tc in range(t):
	(n, a, b) = map(int, input().split())
	l = 'EQUINOX'
	x = 0
	y = 0
	for j in range(n):
		s = input()
		for j in range(len(s)):
			if s[0] in l:
				x += a
				break
			else:
				y += b
				break
	if x == y:
		print('DRAW')
	elif x > y:
		print('SARTHAK')
	else:
		print('ANURADHA')


t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split())
	count_sar = 0
	count_anu = 0
	for line in range(n):
		line = input()
		ch = line[0]
		if ch in 'EQUINOX':
			count_sar += a
		if ch not in 'EQUINOX':
			count_anu += b
	if count_anu > count_sar:
		print('ANURADHA')
	elif count_sar > count_anu:
		print('SARTHAK')
	else:
		print('DRAW')


k = int(input())
while k:
	(n, a, b) = map(int, input().split())
	l = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	sar = 0
	ani = 0
	for i in range(n):
		s = input()
		if s[0] in l:
			sar += a
		else:
			ani += b
	if sar > ani:
		print('SARTHAK')
	elif ani > sar:
		print('ANURADHA')
	else:
		print('DRAW')
	k -= 1


t = int(input())
for u in range(t):
	(n, a, b) = map(int, input().split())
	l = []
	m = []
	c = 0
	f = 0
	for i in range(n):
		s = input().upper()
		l.append(s)
	for i in l:
		if i[0] in 'EQUINOX':
			c += a
		else:
			f += b
	if c > f:
		print('SARTHAK')
	elif f > c:
		print('ANURADHA')
	elif c == f:
		print('DRAW')


for t in range(int(input())):
	(n, a, b) = map(int, input().split())
	sa = 0
	aa = 0
	for i in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			sa = sa + a
		else:
			aa = aa + b
	if sa == aa:
		print('DRAW')
	elif sa > aa:
		print('SARTHAK')
	else:
		print('ANURADHA')


check = list('EQUINOX')
for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	(score_a, score_b) = (0, 0)
	for t in range(n):
		s = input()
		if s[0] in check:
			score_a += a
		else:
			score_b += b
	if score_b < score_a:
		print('SARTHAK')
	elif score_b > score_a:
		print('ANURADHA')
	else:
		print('DRAW')


try:
	for _ in range(int(input())):
		(N, A, B) = map(int, input().split())
		S = []
		for i in range(N):
			x = input()
			S.append(x)
		a = 0
		b = 0
		L = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
		for i in range(N):
			c = S[i]
			if c[0] not in L:
				b += B
			else:
				a += A
		if a > b:
			print('SARTHAK')
		elif a == b:
			print('DRAW')
		else:
			print('ANURADHA')
except:
	pass


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	word = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	anu = 0
	sar = 0
	for i in range(n):
		l = input()
		l = [*l]
		if l[0] in word:
			sar += a
		else:
			anu += b
	if anu > sar:
		print('ANURADHA')
	elif anu == sar:
		print('DRAW')
	else:
		print('SARTHAK')


for i in range(int(input())):
	val = 'EQUINOX'
	l = [int(i) for i in input().split()]
	(sarthak, anu) = (0, 0)
	for i in range(l[0]):
		string = str(input())
		if string[0] in val:
			sarthak = sarthak + l[1]
		else:
			anu += l[2]
	if sarthak == anu:
		print('DRAW')
	elif sarthak >= anu:
		print('SARTHAK')
	else:
		print('ANURADHA')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	e = 'EQUINOX'
	(c, an) = (0, 0)
	for _ in range(n):
		s = input()
		if s[0] in e:
			c += a
		else:
			an += b
	if c > an:
		print('SARTHAK')
	elif c < an:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	s = 'EQUINOX'
	cs = 0
	ca = 0
	temp = 0
	for i in range(n):
		st = input()
		for j in s:
			if st[0] == j:
				cs = cs + a
				temp = 1
				break
		if temp == 0:
			ca = ca + b
		temp = 0
	if ca > cs:
		print('ANURADHA')
	elif ca == cs:
		print('DRAW')
	else:
		print('SARTHAK')


T = int(input())
for i in range(T):
	(n, a, b) = [int(j) for j in input().split()]
	l = []
	sa = an = 0
	for j in range(n):
		l.append(input())
	for i in l:
		if i[0] in 'EQUINOX':
			sa += a
		else:
			an += b
	if sa > an:
		print('SARTHAK')
	elif an > sa:
		print('ANURADHA')
	else:
		print('DRAW')


pl = 'EQUINOX'
for t in range(int(input())):
	(n, a, b) = [int(i) for i in input().split()]
	(sar, anu) = (0, 0)
	for i in range(n):
		if input()[0] in pl:
			sar += a
		else:
			anu += b
	print('DRAW' if anu == sar else 'ANURADHA' if anu > sar else 'SARTHAK')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	d = 'EQUINOX'
	f = 0
	g = 0
	for i in range(a):
		e = str(input())
		if e[0] in d:
			f += b
		else:
			g += c
	if f > g:
		print('SARTHAK')
	elif g > f:
		print('ANURADHA')
	else:
		print('DRAW')


for i in range(int(input())):
	(n, a, b) = map(int, input().split())
	x = 0
	y = 0
	l = []
	for i in range(n):
		s = input().strip()
		l.append(s)
	for i in l:
		if i[0] == 'E' or i[0] == 'Q' or i[0] == 'U' or (i[0] == 'I') or (i[0] == 'N') or (i[0] == 'O') or (i[0] == 'X'):
			x += a
		else:
			y += b
	if x > y:
		print('SARTHAK')
	elif x < y:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
l = 'EQUINOX'
for ni in range(t):
	(n, a, b) = map(int, input().split())
	(na, nb) = (0, 0)
	for nj in range(n):
		s = input()
		if s[0] in l:
			na = na + a
		else:
			nb = nb + b
	if na > nb:
		print('SARTHAK')
	elif nb > na:
		print('ANURADHA')
	else:
		print('DRAW')


import math
from collections import Counter

def solve():
	S = list(map(int, input().split()))
	letters = 'EQUINOX'
	a = 0
	b = 0
	for i in range(S[0]):
		s = input()
		if s[0] in letters:
			a += S[1]
		else:
			b += S[-1]
	if a > b:
		print('SARTHAK')
	elif b > a:
		print('ANURADHA')
	else:
		print('DRAW')
for _ in range(int(input())):
	solve()


for i in range(int(input())):
	(n, a, b) = [int(x) for x in input().split()]
	(sar, anu) = (0, 0)
	for j in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			sar += a
		else:
			anu += b
	if sar > anu:
		print('SARTHAK')
	elif sar == anu:
		print('DRAW')
	else:
		print('ANURADHA')


yup = set('EQUINOX')
for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	(sa, an) = (0, 0)
	for _ in range(n):
		s = input()
		if s[0] in yup:
			sa += a
		else:
			an += b
	if sa > an:
		print('SARTHAK')
	elif sa == an:
		print('DRAW')
	else:
		print('ANURADHA')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	anu = 0
	sar = 0
	for i in range(n):
		s = input()
		if s[0].lower() in ['e', 'q', 'u', 'i', 'n', 'o', 'x']:
			sar += a
		else:
			anu += b
	if sar == anu:
		print('DRAW')
	elif sar > anu:
		print('SARTHAK')
	else:
		print('ANURADHA')


for _ in range(int(input())):
	sarthak = anuradha = 0
	(n, a, b) = map(int, input().split())
	for i in range(n):
		s = input()
		ok = False
		if s[0] in 'EQUINOX':
			ok = True
		if ok:
			sarthak += a
		else:
			anuradha += b
	if sarthak == anuradha:
		print('DRAW')
	else:
		print('SARTHAK' if sarthak > anuradha else 'ANURADHA')


T = int(input())
S = 'EQUINOX'
for i in range(T):
	(n, a, b) = map(int, input().split())
	countS = 0
	countA = 0
	for i in range(n):
		s = input()
		if s[0] in S:
			countS += a
		else:
			countA += b
	if countS == countA:
		print('DRAW')
	elif countS >= countA:
		print('SARTHAK')
	else:
		print('ANURADHA')


t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split())
	x = 0
	y = 0
	for j in range(n):
		s = input()
		p = 'EQUINOX'
		if s[0] in list(p):
			x = x + a
		else:
			y = y + b
	if x > y:
		print('SARTHAK')
	elif y > x:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
while t:
	(n, a, b) = map(int, input().split())
	(p, q) = (0, 0)
	for i in range(n):
		s = input()
		if s[0] in ['E', 'Q', 'U', 'I', 'N', 'O', 'X']:
			p += 1
		else:
			q += 1
	if a * p == b * q:
		print('DRAW')
	else:
		print('SARTHAK') if a * p > b * q else print('ANURADHA')
	t -= 1


t = int(input())
while t != 0:
	(n, a, b) = map(int, input().split())
	anu = sar = 0
	e = 'EQUINOX'
	while n != 0:
		s = input()
		if s[0] not in e:
			anu += b
		else:
			sar += a
		n -= 1
	if anu > sar:
		print('ANURADHA')
	elif anu < sar:
		print('SARTHAK')
	else:
		print('DRAW')
	t -= 1


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	q = 'EQUINOX'
	(c, d) = (0, 0)
	for i in range(n):
		x = input()
		if x[0] in q:
			c += a
		else:
			d += b
	if c == d:
		print('DRAW')
	elif c < d:
		print('ANURADHA')
	else:
		print('SARTHAK')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	p_sa = 0
	p_an = 0
	for i in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			p_sa += a
		else:
			p_an += b
	if p_sa == p_an:
		print('DRAW')
	elif p_sa > p_an:
		print('SARTHAK')
	else:
		print('ANURADHA')


for tc in range(int(input())):
	(n, a, b) = map(int, input().split())
	(sar, anu) = (0, 0)
	for i in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			sar += a
		else:
			anu += b
	if sar > anu:
		print('SARTHAK')
	elif anu > sar:
		print('ANURADHA')
	else:
		print('DRAW')


a = int(input(''))
for i in range(a):
	(N, A, B) = [int(x) for x in input('').split()]
	c = 0
	d = 0
	for j in range(N):
		t = input('')
		if t[0] in 'EQUINOX':
			c = c + A
		else:
			d = d + B
	if c > d:
		print('SARTHAK')
	elif c == d:
		print('DRAW')
	else:
		print('ANURADHA')


l = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
for i in range(int(input())):
	(n, a, b) = map(int, input().split())
	(c1, c2) = (0, 0)
	for i in range(n):
		s = input()
		if s[0] in l:
			c1 = c1 + a
		else:
			c2 += b
	if c1 > c2:
		print('SARTHAK')
	elif c2 > c1:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().strip().split())
	p = 'EQUINOX'
	c = 0
	c1 = 0
	for i in range(n):
		s = str(input())
		if s[0] == p[0] or s[0] == p[1] or s[0] == p[2] or (s[0] == p[3]) or (s[0] == p[4]) or (s[0] == p[5]) or (s[0] == p[6]):
			c += a
		else:
			c1 += b
	if c1 > c:
		print('ANURADHA')
	elif c > c1:
		print('SARTHAK')
	else:
		print('DRAW')


word = 'EQUINOX'
inps = int(input())
for i in range(inps):
	pointS = 0
	pointA = 0
	(n, a, b) = input().split(' ')
	for i in range(int(n)):
		string = input()
		if string[0] in word:
			pointS += int(a)
		else:
			pointA += int(b)
	if pointS == pointA:
		print('DRAW')
	elif pointS > pointA:
		print('SARTHAK')
	else:
		print('ANURADHA')


t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split())
	sarthak_points = 0
	anuradha_points = 0
	words = []
	for j in range(n):
		s = str(input())
		words.append(s)
	for j in range(len(words)):
		current_word = words[j]
		for k in current_word[0:1]:
			if k == 'E' or k == 'Q' or k == 'U' or (k == 'I') or (k == 'N') or (k == 'O') or (k == 'X'):
				sarthak_points += a
			else:
				anuradha_points += b
	if sarthak_points > anuradha_points:
		print('SARTHAK')
	elif sarthak_points < anuradha_points:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	S = 'EQUINOX'
	A = 0
	B = 0
	for i in range(n):
		s = input()
		if s[0] in S:
			A += a
		else:
			B += b
	if A > B:
		print('SARTHAK')
	elif B > A:
		print('ANURADHA')
	else:
		print('DRAW')


T = int(input())
for i in range(T):
	(N, A, B) = map(int, input().split())
	(Sarthak, Anuradha) = (0, 0)
	new = 'EQUINOX'
	for i in range(N):
		S = input()
		if S[0] in new:
			Sarthak += A
		else:
			Anuradha += B
	if Sarthak == Anuradha:
		print('DRAW')
	elif Anuradha > Sarthak:
		print('ANURADHA')
	else:
		print('SARTHAK')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	st = 'EQUINOX'
	sarth = 0
	anu = 0
	for _ in range(n):
		s = input()
		if s[:1] in st:
			sarth += a
		else:
			anu += b
	if sarth > anu:
		print('SARTHAK')
	elif sarth == anu:
		print('DRAW')
	else:
		print('ANURADHA')


STRING = 'EQUINOX'

def problem():
	(n, a, b) = [int(j) for j in input().split()]
	(cs, ca) = (0, 0)
	for it in range(n):
		string = str(input())
		if string[0] in STRING:
			cs += a
		else:
			ca += b
	if cs > ca:
		print('SARTHAK')
	elif cs < ca:
		print('ANURADHA')
	else:
		print('DRAW')
for _ in range(int(input())):
	problem()


t = int(input())
for i in range(t):
	m = 'EQUINOX'
	(cou, coun) = (0, 0)
	(n, a, b) = map(int, input().split())
	for i in range(n):
		k = input()
		if k[0] in m:
			cou += a
		else:
			coun += b
	if cou > coun:
		print('SARTHAK')
	elif cou == coun:
		print('DRAW')
	else:
		print('ANURADHA')


t = int(input())
for _ in range(t):
	(x, y, z) = map(int, input().split())
	l = []
	c1 = c2 = 0
	for i in range(x):
		l.append(input())
	l1 = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	for i in l:
		if i[0] in l1:
			c1 += 1
		else:
			c2 += 1
	if c1 * y > c2 * z:
		print('SARTHAK')
	elif c1 * y == c2 * z:
		print('DRAW')
	else:
		print('ANURADHA')


def Solution(l, n, a, b):
	(an, sa) = (0, 0)
	for i in l:
		if i[0] in 'EQUINOX':
			sa = sa + a
		else:
			an = an + b
	if an > sa:
		return 'ANURADHA'
	elif an < sa:
		return 'SARTHAK'
	return 'DRAW'
for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	l = []
	for i in range(n):
		l.append(input())
	print(Solution(l, n, a, b))


t = int(input())
while t:
	t -= 1
	(n, a, b) = map(int, input().split())
	li = ['E', 'Q', 'U', 'I', 'O', 'N', 'X']
	(x, y) = (0, 0)
	while n > 0:
		st = input()
		if st[0] in li:
			x += a
		else:
			y += b
		n -= 1
	if x > y:
		print('SARTHAK')
	elif x == y:
		print('DRAW')
	else:
		print('ANURADHA')


t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split(' '))
	sar = []
	anu = []
	for i in range(n):
		s = input()
		if s[0] == 'E' or s[0] == 'Q' or s[0] == 'U' or (s[0] == 'I') or (s[0] == 'N') or (s[0] == 'O') or (s[0] == 'X'):
			sar.append(a)
		else:
			anu.append(b)
	if sum(anu) < sum(sar):
		print('SARTHAK')
	elif sum(anu) > sum(sar):
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(N, A, B) = map(int, input().split())
	score = 0
	for __ in range(N):
		l = input()[0]
		if l in 'EQUINOX':
			score += A
		else:
			score -= B
	if score > 0:
		print('SARTHAK')
	elif score == 0:
		print('DRAW')
	else:
		print('ANURADHA')


T = int(input())
for i in range(T):
	[n, a, b] = [int(j) for j in str(input()).split(' ')]
	s = list('EQUINOX')
	sa = 0
	an = 0
	for k in range(n):
		st = str(input())
		if st[0] in s:
			sa += a
		else:
			an += b
	if sa > an:
		print('SARTHAK')
	elif sa < an:
		print('ANURADHA')
	else:
		print('DRAW')


def solve():
	S = list(map(int, input().split()))
	letters = 'EQUINOX'
	a = 0
	b = 0
	for i in range(S[0]):
		s = input()
		if s[0] in letters:
			a += S[1]
		else:
			b += S[-1]
	if a > b:
		print('SARTHAK')
	elif b > a:
		print('ANURADHA')
	else:
		print('DRAW')
for _ in range(int(input())):
	solve()


test = int(input())
for t in range(test):
	(n, a, b) = map(int, input().split())
	s = 'EQUINOX'
	sarthak = 0
	anu = 0
	for i in range(n):
		x = input()
		if not x[0] in s:
			anu += b
		else:
			sarthak += a
	if anu == sarthak:
		print('DRAW')
	elif anu > sarthak:
		print('ANURADHA')
	else:
		print('SARTHAK')


t = int(input())
for i in range(t):
	(n, a, b) = map(int, input().split())
	sa = 0
	an = 0
	for j in range(n):
		s = list(input())
		if s[0] == 'E' or s[0] == 'Q' or s[0] == 'U' or (s[0] == 'I') or (s[0] == 'N') or (s[0] == 'O') or (s[0] == 'X'):
			sa = sa + a
		else:
			an = an + b
	if sa > an:
		print('SARTHAK')
	elif an > sa:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
for _ in range(t):
	(n, a, b) = map(int, input().split())
	e = 'EQUINOX'
	st = 0
	se = 0
	for i in range(n):
		s = input('')
		if s[0] in e:
			st += a
		else:
			se += b
	if st > se:
		print('SARTHAK')
	elif st == se:
		print('DRAW')
	else:
		print('ANURADHA')


for _ in range(int(input())):
	(N, A, B) = map(int, input().split())
	(sar, anu) = (0, 0)
	req = set('EQUINOX')
	for __ in range(N):
		S = input().strip()
		if S[0] in req:
			sar += A
		else:
			anu += B
	if sar > anu:
		print('SARTHAK')
	elif anu > sar:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	a1 = 0
	b1 = 0
	for t in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			a1 += a
		else:
			b1 += b
	if a1 > b1:
		print('SARTHAK')
	elif a1 < b1:
		print('ANURADHA')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	d = 'EQUINOX'
	one = 0
	two = 0
	for i in range(n):
		s = input().upper()
		if s[0] in d:
			one += a
		else:
			two += b
	if one > two:
		print('SARTHAK')
	elif one == two:
		print('DRAW')
	else:
		print('ANURADHA')


t = int(input())
for i in range(t):
	(N, A, B) = list(map(int, input().split()))
	Anu = 0
	Sar = 0
	for j in range(N):
		s = input()
		if s[0] in 'EQUINOX':
			Sar += A
		else:
			Anu += B
	pass
	if Sar == Anu:
		print('DRAW')
	elif Anu < Sar:
		print('SARTHAK')
	else:
		print('ANURADHA')
pass


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	(sp, ap) = (0, 0)
	eq = 'EQUINOX'
	for i in range(n):
		s = input()
		if s[0] in eq:
			sp = sp + a
		else:
			ap = ap + b
	if ap > sp:
		print('ANURADHA')
	elif ap < sp:
		print('SARTHAK')
	else:
		print('DRAW')


for _ in range(int(input())):
	(n, a, b) = map(int, input().split())
	anuradha = 0
	sarthak = 0
	for x in range(n):
		s = input()
		for y in 'EQUINOX':
			if s[0] == y:
				sarthak += a
				break
		else:
			anuradha += b
	if sarthak > anuradha:
		print('SARTHAK')
	elif sarthak < anuradha:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
while t:
	t -= 1
	li = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	spoint = 0
	apoint = 0
	(n, a, b) = map(int, input().split())
	for i in range(n):
		test = input()
		if test[0] in li:
			spoint += a
		else:
			apoint += b
	if spoint > apoint:
		print('SARTHAK')
	elif spoint == apoint:
		print('DRAW')
	else:
		print('ANURADHA')


t = int(input())
check = 'EQUINOX'
while t:
	t -= 1
	(n, a, b) = map(int, input().split())
	sp = 0
	ap = 0
	for i in range(n):
		st = input()
		if st[0] in check:
			sp += a
		else:
			ap += b
	if sp > ap:
		print('SARTHAK')
	elif ap > sp:
		print('ANURADHA')
	else:
		print('DRAW')


for test in range(int(input())):
	(n, a, b) = map(int, input().split())
	sar = 0
	anu = 0
	for string in range(n):
		s = input()
		check = list('EQUINOX')
		if s[0] in check:
			sar += a
		else:
			anu += b
	if sar > anu:
		print('SARTHAK')
	elif sar == anu:
		print('DRAW')
	else:
		print('ANURADHA')


for tc in range(int(input())):
	(N, A, B) = map(int, input().split())
	Sarthak = 0
	Anuradha = 0
	for i in range(N):
		Si = input()
		equinox = 'EQUINOX'
		if Si[0] in equinox:
			Sarthak += A
		else:
			Anuradha += B
	if Sarthak > Anuradha:
		print('SARTHAK')
	elif Sarthak < Anuradha:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
for o in range(t):
	(n, a, b) = map(int, input().split())
	ps = 0
	pa = 0
	for i in range(n):
		s = str(input())
		if s[0] in 'EQUINOX':
			ps += a
		else:
			pa += b
	if ps > pa:
		print('SARTHAK')
	elif ps == pa:
		print('DRAW')
	else:
		print('ANURADHA')


T = int(input())
for _ in range(T):
	(N, A, B) = list(map(int, input().split()))
	sarthak_score = 0
	anuradha_score = 0
	score_string = 'EQUINOX'
	for _ in range(N):
		case_string = input()
		check_list = [x for x in case_string[0] if x in score_string]
		if len(check_list) == 0:
			anuradha_score = anuradha_score + B
		else:
			sarthak_score = sarthak_score + A
	if anuradha_score > sarthak_score:
		print('ANURADHA')
	elif sarthak_score > anuradha_score:
		print('SARTHAK')
	else:
		print('DRAW')


for t in range(int(input())):
	(n, a, b) = [int(k) for k in input().split()]
	sar = 0
	anu = 0
	st = 'EQUINOX'
	for i in range(n):
		k = input()
		if k[0] in st:
			sar += a
		else:
			anu += b
	if sar == anu:
		print('DRAW')
	elif sar > anu:
		print('SARTHAK')
	else:
		print('ANURADHA')


for i in range(int(input())):
	(n, a, b) = list(map(int, input().split()))
	sc = 0
	ac = 0
	for j in range(n):
		s = input()
		if s[0] in 'EQUINOX':
			sc += a
		else:
			ac += b
	if sc > ac:
		print('SARTHAK')
	elif sc < ac:
		print('ANURADHA')
	else:
		print('DRAW')


T = int(input())
for i in range(T):
	(N, A, B) = map(int, input().split())
	count = 0
	count1 = 0
	for i in range(N):
		string = input()
		s1 = string[0]
		if s1 == 'E' or s1 == 'Q' or s1 == 'U' or (s1 == 'I') or (s1 == 'I') or (s1 == 'N') or (s1 == 'O') or (s1 == 'X'):
			count = count + A
		else:
			count1 = count1 + B
	if count > count1:
		print('SARTHAK')
	elif count < count1:
		print('ANURADHA')
	else:
		print('DRAW')


t = int(input())
for i in range(t):
	(N, A, B) = [int(x) for x in input().split()]
	(A_score, B_score) = (0, 0)
	l = ['E', 'Q', 'U', 'I', 'N', 'O', 'X']
	for j in range(N):
		s = input()
		if s[0] in l:
			A_score += A
		else:
			B_score += B
	if A_score > B_score:
		print('SARTHAK')
	elif A_score < B_score:
		print('ANURADHA')
	else:
		print('DRAW')


q = int(input())
while q > 0:
	q -= 1
	(n, a, b) = list(map(int, input().split()))
	point1 = 0
	point2 = 0
	for i in range(0, n):
		str = input()
		start = str[0]
		if start == 'E' or start == 'Q' or start == 'U' or (start == 'I') or (start == 'N') or (start == 'O') or (start == 'X'):
			point1 += a
		else:
			point2 += b
	if point1 > point2:
		print('SARTHAK')
	elif point2 > point1:
		print('ANURADHA')
	else:
		print('DRAW')