N = int(input()) NumList = ["", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] result = "" for i in range (1,N+1): for j in range(1,N+1): result = result + NumList[i] print(result)