Task: Program Execution
Input (English): 2, 2, ['8149', '7123', 'c', 'X', '1659']
Output (English): 7123