diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -10,6 +10,13 @@
         and cards[3] == cards[4]
     ):
         print("Yes")
+    elif (
+        cards[0] == cards[1]
+        and cards[0] != cards[2]
+        and cards[2] == cards[3]
+        and cards[3] == cards[4]
+    ):
+        print("Yes")
     else:
         print("No")
 
