Task: Program Execution
Input (English): 5, 9, ['6735', '7173', 'q', '4567', '4489', 'X', '2659', 'G', 'V', '1017', '4371']
Output (English): 7148