Task: Program Execution
Input (English): 3, 3, ['1575', '3927', 'Y', '7433', '3139', 'c', 'E', '319', '6537', '3027']
Output (English): Y