diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,7 +1,7 @@
 N, M = map(int, input().split())
 
 if M == 0:
-    for i in range(N, 0, -1):
+    for i in range(N - 1, -1, -1):
         print(i)
     exit()
 
