diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,6 +1,6 @@
 K = sorted(list(map(int, input().split())))
 
-if len(set(K)) == 2 and K[2] != K[3]:
+if len(set(K)) == 2 and (K[2] != K[3] or K[1] != K[2]):
     print("Yes")
 else:
     print("No")
