n = int(input()) for i in range(n): x=i for i in range(n): print (x, end='')