#include <iostream>
#include <functional>
using namespace std;
int main() {
int n = 3;
function<void(int)> f; f = [&f](int i){ if (i > 1) { cout << "func(a, "; f(i-1); cout << ")"; } else cout << "a"; }, f(n);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnVuY3Rpb25hbD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGludCBuID0gMzsKICAgIGZ1bmN0aW9uPHZvaWQoaW50KT4gZjsgZiA9IFsmZl0oaW50IGkpeyBpZiAoaSA+IDEpIHsgY291dCA8PCAiZnVuYyhhLCAiOyBmKGktMSk7IGNvdXQgPDwgIikiOyB9IGVsc2UgY291dCA8PCAiYSI7IH0sIGYobik7CiAgICByZXR1cm4gMDsKfQ==