#!/usr/bin/env python3

# Marijn
# prints at most 20000 numbers, which is too many
print(2*(y:=int(input())),*(['1','0']*y))
