#!/usr/bin/env python3
# Padded solution that uses as many tokens as possible
MAX_TOKENS = 10000
print(MAX_TOKENS)
n = int(input())
for i in range(MAX_TOKENS):
    print(int(i < n), end=' ')
