# Kyle Dencker
# 7/24/2013
# Solution to SI@UCF Contest Question: Scores

# Open the file.
file=open('scores.in')
cycles=int(file.readline())

# Go through each case.
for i in range(cycles):

    # Parse out data.
    numapp=file.readline().split()
    gpa = float(numapp[0])
    sat = int(numapp[1])
    activities = int(numapp[2])

    # Yeah, we are accepted in these three ways.
    if gpa >= 3.75 or sat >= 2000 or activities >= 5:
        print("Accepted")

    # These two ways get us waitlisted.
    elif gpa >= 3.0 and sat >= 1500:
        print("Waitlisted")
    elif sat >= 1700 and activities >= 3:
        print("Waitlisted")

    # :( We can't go to UCF
    else:
        print("Declined")
    
file.close()
