Task: Program Execution
Input (English): V, 6309, 4941, 4621, D, P, 3811, n, Z, h, l, 3099, k, 4693, w, z, 907, 3447
Output (English): 2, 3, 4, 7, 12, 14, 17, 18