n = int(input()) lst = [i for i in range(10)] del lst[0] lst.append(0) ans = "" for i in range(n): ans = ans + str(lst[i])*n print(ans)