Task: Program Execution
Input (English): P, 3561, 1457, V, 8483, 4861, 9267, 9767, 8693, 6153, 9681, h, D, 7019, 3563, x, 1831, I, 3741, q, Q, 9885, 9603
Output (English): 16, 3561, 1457, 22, 8483, 4861, 9267, 9767, 8693, 6153, 9681, 8, 4, 7019, 3563, 24, 1831, 9, 3741, 17, 17, 9885, 9603