Task: Program Execution
Input (English): N, j, 3885, 4327, 1783, 3633, 623, 4371, o, W, P
Output (English): 3885, 4327, 1783, 3633, 623, 4371