Task: Program Execution
Input (English): q, N, s, i, 3399, 4489, U, 837, n, Z, I, h, h, Z, 8429, u, 7781, b
Output (English): 5, 6, 8, 15, 17