Task: Program Execution
Input (English): y, Q, 7731, 8217, 3129, 6785, 2801, 5101, 4777, 9631, 539, t, 1887
Output (English): 50598