def main(): N = int(input()) for i in range(N, 0, -1): print(str(N) * i) main()