Task: Program Execution
Input (English): 5, 5, ['7829', '3257', '6655', '4051', 'T', 'W', '839']
Output (English): T