n = int(input()) for i in range(n): x=i for l in range(n): print (x)