Task: Program Execution
Input (English): 3, 3, ['2751', 'M', '7513', 'J', 'y']
Output (English): 7513