#include <iostream>#include <bitset>using namespace std;int main() { int n; cin >> n; for (unsigned long long i = 0; i < (1ull << n); ++i) { cout << bitset<64>(i).to_string().substr(64 - n) << '\n'; }}