Task: Program Execution
Input (English): 5, 5, ['F', '7985', '1197', 'l', '3695']
Output (English): 3695