diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -6,7 +6,7 @@
         cnt = [0, 0, 0]
         for i in range(n):
             if a[i][j] != ".":
-                if cnt == 0 and a[i][j] != c[j]:
+                if cnt == [0, 0, 0] and a[i][j] != c[j]:
                     return False
                 cnt[ord(a[i][j]) - ord("A")] += 1
         if cnt != [1, 1, 1]:
