def main(): N = int(input()) for length in reversed(range(1, N+1)): print(str(N)*length) if __name__ == "__main__": main()