Task: Program Execution
Input (English): 8695, 8487, P, 6235, R, 6217, 7239, 7511, 379, 8765, 3621, V, 6373, 991, 1877, I, 5037, o, 1299, 1371, D, r, K, 9955
Output (English): 8695, 8487, 16, 6235, 18, 6217, 7239, 7511, 379, 8765, 3621, 22, 6373, 991, 1877, 9, 5037, 15, 1299, 1371, 4, 18, 11, 9955