diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -2,5 +2,7 @@
 for s in S:
     if s == "R":
         print("Yes")
+        break
     elif s == "M":
         print("No")
+        break
