'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
def is_prime(num):
	if num < 2:
		return False
	elif num == 2:
		return True
	for i in range(2, num - 1):
		if num % i == 0:
			return False
	return True
	
	

total_tests = input()

inputs = []  

#print 'prime test of 2 ' + str(is_prime(6))

for i in range(0,total_tests):
	num = input()
	inputs.append(num)
	
for num in inputs:
	done = False
	for i in range(1, num):
		if is_prime(i):
			if is_prime(num - i):
				print "Deepa"
				done = True
				break
	if not done:
		print "Arjit"
		done = False