Task: Program Execution
Input (English): 2, ['Y', 'R', '6423', '4167', 'L', 'K', 'D']
Output (English): Y, R