from collections import deque
#l = deque(maxlen=5)
#l.append('apple')
#l.append('orange')
#l.append('grape')
#l.append('banana')
##l.append('mango')
##print(l)
##l.append('nigga')
##print(l)

#for line in reversed(l):
#     print(l)

a = deque(maxlen=3)
a=(['jason','joseph','dichoso'])
for i in reversed(a):
    print(i)