total = [] while True: w=input() if w=="q": break else: total.append(w) print(total)