diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -2,7 +2,7 @@
 for i in range(len(S)):
     if S[i] == "R":
         R_index = i
-    elif S[i] == "S":
+    elif S[i] == "M":
         S_index = i
 if R_index < S_index:
     print("Yes")
