def main(): N = int(input()) s = '' for i in '9876543210'[:N]: s = s + N * str(i) print(s) if __name__ == '__main__': main()