Task: Program Execution
Input (English): 3, 4, ['Y', '8873', '1677', 'd']
Output (English): 1677, d