diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -12,5 +12,6 @@
     if i not in d or d[i] == 0:
         yes = False
         break
-
+    else:
+        d[i] -= 1
 print("Yes" if yes else "No")
