Task: Program Execution
Input (English): 2, ['5131', 'M', '6443', '1589']
Output (English): 5131, M