Task: Program Execution
Input (English): p, Z, h, W, 4167, 549, R, 9069, 7731, R, d, r, 9361, 5695, c, 9445, 2693, W, 1851, n, 3991, N
Output (English): 1, 2, 3, 4, 7, 10, 11, 12, 15, 18, 20, 22