Task: Program Execution
Input (English): 2, 5, ['9949', 'X', '5805', 'B', 'P', '641', 'g', 'O']
Output (English): PB5085X