Task: Program Execution
Input (English): 7905, 3151, 8163, 1207, 2731, a, N, S, 7857, 7417, z, o, 7125, N, 6475, 523, 7821, 4289, 2353, D, 3167, W, s
Output (English): 1, 2, 3, 4, 5, 9, 10, 13, 15, 16, 17, 18, 19, 21