diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -23,6 +23,6 @@
         while A[j] != x:
             j += 1
         tem = A[:digit] + list(reversed(A[digit : j + 1])) + A[j + 1 :]
-        print(tem)
+        print(*tem)
         exit()
 print(*A)
