Task: Program Execution
Input (English): 3, 5, ['l', '4771', 'M', 'p', '9269', 'Q', '9381']
Output (English): 9629pM