Task: Program Execution
Input (English): b, A, E, M, X, 9999, 3115, a, 4451, 9749, 4429, K, 3161, n, 2839, 1991, 3317
Output (English): 43051