Task: Program Execution
Input (English): 3, 7, ['K', 'q', 'G', 'z', '5727', 'Y', 'W']
Output (English): 5727