#include <bits/stdc++.h>
using namespace std;
int K;
int rec(int i)
{
if(i<0)return 0;
if(i==2 || i==0)return 1;
int ANS = 0;
for(int c=0; c<=K; c+=2)
{
if ((i-2-c)<0)break;
ANS += rec(c)*rec(i-2-c);
}
return ANS;
}
int main()
{
K=8;
/*Part (a)*/
cout<<rec(2*6)<<endl;
K=4;
/*Part (b) */
cout<<rec(2*8)<<endl;
/*Part (c)*/
cout<<rec(2*10)<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBLOwppbnQgcmVjKGludCBpKQp7CglpZihpPDApcmV0dXJuIDA7CglpZihpPT0yIHx8IGk9PTApcmV0dXJuIDE7CglpbnQgQU5TID0gMDsKCWZvcihpbnQgYz0wOyBjPD1LOyBjKz0yKQoJewoJCWlmICgoaS0yLWMpPDApYnJlYWs7CgkJQU5TICs9IHJlYyhjKSpyZWMoaS0yLWMpOwoJfQoJcmV0dXJuIEFOUzsKfQoKaW50IG1haW4oKQp7CglLPTg7CgkvKlBhcnQgKGEpKi8KCWNvdXQ8PHJlYygyKjYpPDxlbmRsOwoJSz00OwoJLypQYXJ0IChiKSAqLwoJY291dDw8cmVjKDIqOCk8PGVuZGw7CgkvKlBhcnQgKGMpKi8KCWNvdXQ8PHJlYygyKjEwKTw8ZW5kbDsKCXJldHVybiAwOwp9