for i in range(11):
        print(i)
for i in reversed(range(11)):
        print(i)