import sys a=['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] for b in range(5,0,-1): if b == 0: print(a) else: a.pop(len(a)-1) print(a) print([])