diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -8,7 +8,7 @@
 for i in range(n):
     s = input()
 
-    if not s[0] in one or not s[1] in two or not s in spawned:
+    if not s[0] in one or not s[1] in two or s in spawned:
         print("No")
         exit(0)
 
