Task: Program Execution
Input (English): 1, 5, ['P', 'X', '2951', '5115', '9187', 'L', '3433', 'g', 'g']
Output (English): 918751152951XP