#include <bits/stdc++.h>
using namespace std;

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  if (n == 1) {
    cout << "1\n";
    cout << "0\n";
  } else if (n == 2) {
    cout << "2\n";
    cout << "0\n";
    cout << "11\n";
  } else {
    cout << n - 1 << '\n';
    for (int m = 2; m <= n; ++m) {
      cout << "1" + string(m - 2, '0') + "1\n";
    }
  }
}

