Task: Program Execution
Input (English): 9029, G, g, 4021, M, 9409, x, V, r, k, 8213, 6001, z
Output (English): 36673