// yukicoder: No.796 well known // 2019.5.3 bal4u #include #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int in() // 非負整数の入力 { int n = 0, c = gc(); // while (isspace(c)) c = gc(); do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0'); return n; } int main() { int N = in(); pc('3'), pc(' '), pc('3'-N%3); N -= 2; while (N--) pc(' '), pc('1'); pc('\n'); return 0; }