21 3 -3 3 -3 3 -3 19 3 -3 3 -3 3 -3 19 3 -3 3 -3 3 -3 19 2 8 -100
5 -1000 5 1000 500 250
10 -1000 5 1000 500 250 -1000 5 1000 500 250
7 3 -3 3 -3 3 -3 19
5 44 7 11 -999 20 5 10 25 12 4 1 
3 16 28 100
None to display -100 8 
250 500 1000 -1000 
250 500 1000 -1000 250 500 1000 -1000 
None to display
20 44 4 12 10 
100 28 16
while True:    
    try:
        s = raw_input()
    except:        
        break
    if len(s.rstrip().lstrip())==0:        
        break
    ser = map(int, s.split())
    srr = ser[1:][::-1]
    found = False
    for x in srr:
        if x % 2 == 0:
            found = True
            print x,
    if not found:
        print "None to display"
    else:
        print

exit()