diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -2,6 +2,6 @@
 T = list(input().split())
 count = 0
 for i in range(3):
-    if S[i] == T[i]:
+    if S[i] != T[i]:
         count += 1
 print("Yes") if count != 2 else print("No")
