Task: Program Execution
Input (English): 3, 7, ['21', 'R', '8109', 'l', 'd', 'B', '47', 'Y']
Output (English): 8156