{"problem":{"name":"Yellow and Red Card","description":{"content":"$N$ players numbered $1$ to $N$ will play a soccer game.   When a player commits an offense, that player will receive a **yellow card** or a **red card**.   A player who satisfies one of the following","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc292_b"},"statements":[{"statement_type":"Markdown","content":"$N$ players numbered $1$ to $N$ will play a soccer game.  \nWhen a player commits an offense, that player will receive a **yellow card** or a **red card**.  \nA player who satisfies one of the following conditions will be **removed** from the game.\n\n*   Accumulates two yellow cards.\n*   Receives a red card.\n\nOnce a player is removed, that player will no longer receive any cards.\nYou will watch this game. Initially, the players have not received any cards.  \nThere will be $Q$ events. Correctly answer the questions asked in the events.  \nThere are three kinds of events, which are given in the format `c x` from the input, where $c$ is $1$, $2$, or $3$. The events are as follows.\n\n*   `1 x`: Player $x$ receives a yellow card.\n*   `2 x`: Player $x$ receives a red card.\n*   `3 x`: You are asked whether player $x$ has been removed from the game. Answer `Yes` or `No`.\n\n## Constraints\n\n*   $1 \\leq N \\leq 100$\n*   $1 \\leq Q \\leq 100$\n*   $1 \\leq x \\leq N$ in all events.\n*   There is at least one event of the third kind.\n*   A player who has been removed will no longer receive any cards.\n*   All values in the input are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format, where $\\text{event}_i$ denotes the $i$\\-th event.\n\n$N$ $Q$\n$\\text{event}_1$\n$\\text{event}_2$\n$\\vdots$\n$\\text{event}_Q$\n\nEach event is in one of the following formats:\n\n1 $x$\n\n2 $x$\n\n3 $x$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc292_b","tags":[],"sample_group":[["3 9\n3 1\n3 2\n1 2\n2 1\n3 1\n3 2\n1 2\n3 2\n3 3","No\nNo\nYes\nNo\nYes\nNo\n\nHere are all the events in chronological order.\nIn the $1$\\-st event, you are asked whether player $1$ has been removed from the game. Player $1$ has not been removed, so you should print `No`.  \nIn the $2$\\-nd event, you are asked whether player $2$ has been removed from the game. Player $2$ has not been removed, so you should print `No`.  \nIn the $3$\\-rd event, player $2$ receives a yellow card.  \nIn the $4$\\-th event, player $1$ receives a red card and is removed from the game.  \nIn the $5$\\-th event, you are asked whether player $1$ has been removed from the game. Player $1$ has been removed, so you should print `Yes`.  \nIn the $6$\\-th event, you are asked whether player $2$ has been removed from the game. Player $2$ has not been removed, so you should print `No`.  \nIn the $7$\\-th event, player $2$ receives a yellow card and is removed from the game.  \nIn the $8$\\-th event, you are asked whether player $2$ has been removed from the game. Player $2$ has been removed, so you should print `Yes`.  \nIn the $9$\\-th event, you are asked whether player $3$ has been removed from the game. Player $3$ has not been removed, so you should print `No`."]],"created_at":"2026-03-03 11:01:14"}}