Task: Program Execution
Input (English): 5207, n, 6491, 527, 9315, 9377, y
Output (English): 30917