Task: Program Execution
Input (English): u, Z, 4027, 8083, 3871, 3347, 3961, 9121, 385, 9923, N, z, 9885, W, 3571, 8399, 8313, S
Output (English): 3, 4, 5, 6, 7, 8, 9, 10, 13, 15, 16, 17