Task: Program Execution
Input (English): 3, 5, ['1371', '2029', 'B', '1287', 'X', 'E', '731', 'v', 'C', '2659', 'l', '5523', 'I']
Output (English): 1287