Task: Program Execution
Input (English): 1517, 7071, 2429, f, 3843, Q, p, A, 9473, T
Output (English): 1517, 7071, 2429, 6, 3843, 17, 16, 1, 9473, 20