Task: Program Execution
Input (English): 12, 12, ['X', '1439', 'x', 'i', 'O', 'm', 'q', '5161', 'H', 'D', '9491', '3611', '6479']
Output (English): 3611