Task: Program Execution
Input (English): 4, 6, ['5131', '1157', 'L', '2485', 'Z', 'a', '6893', '7895', '4665', '5877', '5131', 'Z', 'l', '2887', '9777']
Output (English): 2485Za