Task: Program Execution
Input (English): 3, 7, ['P', 'P', 'H', 'r', '3563', 'n', 'M', '1577', '6453']
Output (English): Mn3653rH