Run ID:124339

提交时间:2025-07-11 11:49:28

while True: try: n = int(input()) items = [input().strip() for _ in range(n)] utensils = {'bowl', 'knife', 'fork', 'chopsticks'} result = [item for item in items if item in utensils] print(' '.join(result)) except EOFError: break