count = 0 math = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] turn = input() turn = int(turn) while turn != count: yes_or_no = input() answer = input() if answer == 'NO': for i in len(answer): math.remove(answer[i]) else: math.extend(answer) count = count + 1 print(math)