Task: Program Execution
Input (English): k, p, 3859, P, 3367, 6253, 7393, 6649, 553, E, E, W, 821, l, 6995, 3935, A, S, 8487, 8179, 9417, I, U
Output (English): 1, 2, 4, 10, 11, 12, 14, 17, 18, 22, 23