Task: Program Execution
Input (English): Q, C, 3229, 2227, X, 1771, q, 4393, 2013, 7019, 503, 6289, r, 2709, 3787, u, 8565, 141
Output (English): 1, 2, 5, 7, 13, 16