#include<bits/stdc++.h>
#define for0(i, n) for(int i = 0; i < (n); i++)
#define for1(i, n) for(int i = 1; i <= (n);i++)
using namespace std;
int n;
signed main() {
	cin >> n;
	if (n == 1) { cout << "1\n0\n"; return 0; }
	if (n == 2) { cout << "2\n0\n11\n"; return 0; }
	else {
		cout << n - 1 << endl;
		for (int i = 2; i <= n; i++) {
			int j = i - 2;
			printf("1");
			while (j-- > 0)printf("0");
			printf("1\n");
		}
	}
}
