Task: Program Execution
Input (English): K, S, 9871, 625, x, y, 3127, U, k, 5463, 2383, 9987, 7487, 4781, 9815, a
Output (English): 7