Task: Program Execution
Input (English): K, 9287, 219, 1713, 8231, 449
Output (English): 5