Task: Program Execution
Input (English): 5521, U, 5671, 8975, A, 6437, J, D, 6477, p, 4365, i, T, X
Output (English): 5521, 21, 5671, 8975, 1, 6437, 10, 4, 6477, 16, 4365, 9, 20, 24