Task: Program Execution
Input (English): Z, 4259, h, q, 3871, 5107, 8429, 4483, 4649, q, N, R, 851
Output (English): 1, 3, 4, 10, 11, 12