#include <iostream>
#include <cstdlib>
using namespace std;ывав
typedef unsigned long long ll;
ll f(ll m, ll n) {
    if(m==0) return n+1;
    if(n==0) return f(m-1,1);
    return f(m-1,f(m,n-1));
}
int main(int argc, char *argv[])
{
    for(int i=0;i<30;i++) cout << "akk("<<3<<";"<<i<<") = "<<f(3,i)<<endl;
    return 0;
}
