#include <iostream>
#include <cstdio>
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <list>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <bitset>
#include <string>
#include <algorithm>
#define llint long long
#define inf 1e18
#define rep(x, s, t) for(llint (x) = (s); (x) < (t); (x)++)
#define Rep(x, s, t) for(llint (x) = (s); (x) <= (t); (x)++)

using namespace std;
typedef pair<llint, llint> P;

llint n;

int main(void)
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	cin >> n;
	
	if(n == 1){
		cout << 1 << endl;
		cout << 0 << endl;
		return 0;
	}
	if(n == 2){
		cout << 2 << endl;
		cout << 0 << endl;
		cout << 11 << endl;
		return 0;
	}
	
	cout << n-1 << endl;
	for(int i = 0; i < n-1; i++){
		cout << 0;
		for(int j = 0; j < i; j++) cout << 1;
		cout << 0 << endl;
	}
	
	return 0;
}
