diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -11,7 +11,7 @@
     ST = [input().split() for _ in range(N)]
     for i in range(N):
         si, ti = ST[i]
-        if judge2(si, i) == False or judge2(ti, i) == False:
+        if not (judge2(si, i) or judge2(ti, i)):
             return False
     return True
 
