Task: Program Execution
Input (English): 3, 7, ['e', '9465', '7237', 'a', '949', 'R', '173', 'B', '3389', 'C']
Output (English): 8359