Task: Program Execution
Input (English): 1905, 7051, x, n, U
Output (English): 8956