Task: Program Execution
Input (English): 5, 5, ['81', 'F', 'O', '127', 'Y', 'c', 'A', '1247', '7513', '591', '2453', '6121']
Output (English): Y