Task: Program Execution
Input (English): 8565, 425, 6553, w, N, M, 8163, F, m, K, S, 905, O, 1503, 9461, 4817, a
Output (English): 8565, 425, 6553, 8163, 905, 1503, 9461, 4817