Task: Program Execution
Input (English): 7, 7, ['8417', '1525', '7703', '809', 'Z', 'g', '365']
Output (English): 365