Task: Program Execution
Input (English): 5, 5, ['4065', '7523', '3307', '2781', '2447', 'L', '6495', 'O', 's', '3757']
Output (English): 2447