Task: Program Execution
Input (English): 3, 3, ['3141', 'x', '4937']
Output (English): 4937