import sys n = int(input()) s = str(input()) for i in range(0, n // 3 * 2, 2): print(" " * ( i // 2 ) + s[i] + " " * ( n // 3 * 2 + 1 - 2 * (i // 2 + 1)) + s[i+1], end = "\n") for i in range(n // 3 * 2, n): print(" " * ( n // 3 ) + s[i], end = "\n")
import sys n = int(input()) s = str(input()) for i in range(0, n // 3 * 2, 2): print(" " * ( i // 2 ) + s[i] + " " * ( n // 3 * 2 + 1 - 2 * (i // 2 + 1)) + s[i+1], end = "\n") for i in range(n // 3 * 2, n): print(" " * ( n // 3 ) + s[i], end = "\n")