Task: Program Execution
Input (English): p, i, 1783, 3503, 499, 9345, 4711, 979, R, Y, 1357, 8515, 6081, Q, D, P, P, 349, P, T
Output (English): 16, 9, 1783, 3503, 499, 9345, 4711, 979, 18, 25, 1357, 8515, 6081, 17, 4, 16, 16, 349, 16, 20