Task: Program Execution
Input (English): 2, 4, ['r', '9739', '6661', 'X', '8015', '4739', '6687', '1241']
Output (English): 16400