N = int(input()) ab = [0 for i in range(200 + 1)] cde = [0 for i in range(300 + 1)] fgh = [0 for i in range(300 + 1)] for a in range(N + 1): for b in range(N + 1): ab[a + b]+=1 for c in range(N + 1): for d in range(N + 1): for e in range(N + 1): cde[c + d + e]+=1 for f in range(N + 1): for g in range(N + 1): for h in range(N + 1): fgh[f + g + h]+=1 ans = 0 for i in range(200 + 1): for j in range(300 + 1): if 0 <= 6 * N - i - j <= 300: ans+=ab[i]*cde[j]*fgh[6 * N - i - j] print(ans)