Task: Program Execution
Input (English): 5, 5, ['K', 'K', '7981', '8055', '9351']
Output (English): 9351