Task: Program Execution
Input (English): N, N, 4701, 7341, 5369, Y, i, M, 9769, p, v, 5735, 1553, P, 3669, k, A, 3785, x, D, 6387, 1791
Output (English): 4701, 7341, 5369, 9769, 5735, 1553, 3669, 3785, 6387, 1791