Task: Program Execution
Input (English): Z, 6707, 8139, U, k, 3739, 847, l, W, 4923, Z, 2645, r
Output (English): 1, 4, 5, 8, 9, 11, 13