Task: Program Execution
Input (English): 3, 5, ['2377', 'm', 'f', '9191', 'P', '1747']
Output (English): P1919f