#include <stdio.h>
long long int dp[36] = {1};
int main(){
int n;
scanf("%d", &n);
dp[0] = 1;
dp[1] = 1;
for(int i = 2; i < 35; i++){
for(int j = 0; j < i; j++ ){
dp[i] += dp[j] * dp[i-j-1];
}
}
printf("%lld", dp[n]);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiAKIApsb25nIGxvbmcgaW50IGRwWzM2XSA9IHsxfTsKIAppbnQgbWFpbigpewoJaW50IG47CglzY2FuZigiJWQiLCAmbik7CiAKCWRwWzBdID0gMTsKCWRwWzFdID0gMTsKIAogCiAKIAoJZm9yKGludCBpID0gMjsgaSA8IDM1OyBpKyspewoJCWZvcihpbnQgaiA9IDA7IGogPCBpOyBqKysgKXsKCQkJZHBbaV0gKz0gZHBbal0gKiBkcFtpLWotMV07CgkJfQogCgl9CiAKCXByaW50ZigiJWxsZCIsIGRwW25dKTsKCXJldHVybiAwOwp9