Task: Program Execution
Input (English): 2, 2, ['K', '3495', '4791']
Output (English): 3495