diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,7 +1,7 @@
 N = int(input())
 S = str(1)
 if N == 1:
-    print(S)
+    exit(print(S))
 for i in range(2, N + 1):
     S = S + " " + str(i) + " " + S
 print(S)
