{"problem":{"name":"Dentist Aoki","description":{"content":"Takahashi has $N$ teeth, one in each of the holes numbered $1, 2, \\dots, N$.   Dentist Aoki will perform $Q$ treatments on these teeth and holes.   In the $i$\\-th treatment, hole $T_i$ is treated as f","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc350_b"},"statements":[{"statement_type":"Markdown","content":"Takahashi has $N$ teeth, one in each of the holes numbered $1, 2, \\dots, N$.  \nDentist Aoki will perform $Q$ treatments on these teeth and holes.  \nIn the $i$\\-th treatment, hole $T_i$ is treated as follows:\n\n*   If there is a tooth in hole $T_i$, remove the tooth from hole $T_i$.\n*   If there is no tooth in hole $T_i$ (i.e., the hole is empty), grow a tooth in hole $T_i$.\n\nAfter all treatments are completed, how many teeth does Takahashi have?\n\n## Constraints\n\n*   All input values are integers.\n*   $1 \\le N, Q \\le 1000$\n*   $1 \\le T_i \\le N$\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$ $Q$\n$T_1$ $T_2$ $\\dots$ $T_Q$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc350_b","tags":[],"sample_group":[["30 6\n2 9 18 27 18 9","28\n\nInitially, Takahashi has $30$ teeth, and Aoki performs six treatments.\n\n*   In the first treatment, hole $2$ is treated. There is a tooth in hole $2$, so it is removed.\n*   In the second treatment, hole $9$ is treated. There is a tooth in hole $9$, so it is removed.\n*   In the third treatment, hole $18$ is treated. There is a tooth in hole $18$, so it is removed.\n*   In the fourth treatment, hole $27$ is treated. There is a tooth in hole $27$, so it is removed.\n*   In the fifth treatment, hole $18$ is treated. There is no tooth in hole $18$, so a tooth is grown.\n*   In the sixth treatment, hole $9$ is treated. There is no tooth in hole $9$, so a tooth is grown.\n\nThe final count of teeth is $28$."],["1 7\n1 1 1 1 1 1 1","0"],["9 20\n9 5 1 2 2 2 8 9 2 1 6 2 6 5 8 7 8 5 9 8","5"]],"created_at":"2026-03-03 11:01:13"}}