N = int(input()) N_str = str(N) for i in range(N): for j in range(N-i): print(N_str,end="") print()