for i in range(6):
    print(i)
for i in range(3, 8):
    print(i)
