Task: Program Execution
Input (English): 3, 4, ['6721', '3377', 'Y', '4581']
Output (English): 4581Y