diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -10,4 +10,4 @@
         now = a
         INDEX = i
 for i in range(n):
-    print(*ans[(i + INDEX) % n])
+    print(ans[(i + INDEX) % n][0])
