#include #define repeat(i,n) for (int i = 0; (i) < (n); ++(i)) #define repeat_from(i,m,n) for (int i = (m); (i) < (n); ++(i)) using namespace std; int main() { int n; cin >> n; for (int l = 0; ; ++ l) { repeat (s,1<