#include long long combi[210][210] = {0}; int main(){ long long N; scanf("%lld",&N); int i, j; combi[0][0] = 1; for (i = 1; i <= 207; i++){ combi[i][0] = 1; for (j = 1; j <= i; j++){ combi[i][j] = combi[i - 1][j] + combi[i - 1][j - 1]; } } long long sum = 0; for (i = 6; i <= N + 5; i++){ sum += combi[i][6]; } sum *= 8; printf("%lld\n", combi[(2 * N) + 7][7] - sum); //printf("10\n"); return 0; }