Task: Program Execution
Input (English): 2, ['1165', 'y', 'y', '9841']
Output (English): 1165, y