Task: Program Execution
Input (English): 4, 8, ['1997', '9809', '8037', '8531', 'y', '7641', 'y', '2007']
Output (English): 18179