Task: Program Execution
Input (English): 5, 5, ['3461', 'D', 's', '9849', 'Y', 'y', 'a']
Output (English): Y