Task: Program Execution
Input (English): g, n, 9541, T, q, 2969, 6541, W, 3141, 1947, V, x, l, C, 2065, 9357, g, 9789, D, 3553, 599, b, h
Output (English): 7, 14, 9541, 20, 17, 2969, 6541, 23, 3141, 1947, 22, 24, 12, 3, 2065, 9357, 7, 9789, 4, 3553, 599, 2, 8