diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -4,7 +4,7 @@
 ans = [0] * c
 queries = [list(map(lambda x: int(x) - 1, input().split())) for _ in range(q)]
 for t, n, c in reversed(queries):
-    if t == 2:
+    if t == 0:
         if n not in db:
             ans[c] += w - len(dv)
             db.add(n)
