Task: Program Execution
Input (English): 2, 4, ['127', 'E', 'P', 'K', '477', 'a', 'F']
Output (English): KPE