Task: Program Execution
Input (English): 4, 13, ['R', '9007', 'A', 'o', 'w', '9095', '409', '4123', 'I', '105', 'v', '153', '4493']
Output (English): 18378