diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -5,7 +5,7 @@
     a = a[1:]
 cnt = 0
 ans = "Yes"
-for i in range(max(1, n - 1)):
+for i in range(n - 1):
     if i >= 1 and a[i] == a[i - 1]:
         cnt += 1
     else:
