while True:
    try:
        n = int(input())
        s = ''
        for i in range(n):
            s += str(i+1) + ' '
            print(s)
    except EOFError:
        break