# print the pascal's triangle

l1 = [1,1]
l2 = [1,2,1]
l3 = [1,3,3,1]

n = int(input("# of levels?: "))
if n == 1:
    print(l1)
if n == 2:
    print(l2)
    print(l2)
    
if n == 3:
    print(l1)
    print(l2)
    print(l3)