# This is an optional Competitive Programming question, this won't be graded

# Modify the following function to return a List with the elements as the nth row of the Pascal's triangle (remove the "pass" keyword).
# There are multiple ways to do this, try the most optimized method (using recursion or some mathematical functions).
def getNthPascalsRow(n):
    pass









## DO NOT EDIT ANY OF THE FOLLOWING LINES ##

for n in getNthPascalsRow(int(input())):
    print(n, end=' ')