Task: Program Execution
Input (English): 2, 3, ['Y', '2949', 'L']
Output (English): L2949