Task: Program Execution
Input (English): k, E, 9881, t, 3913, h, w, N, S, 8839, 7395, U
Output (English): 1, 2, 4, 6, 7, 8, 9, 12