Task: Program Execution
Input (English): J 4935 t 3431 c 8525 I P 3181 R W 7841 r c 8643 V 9139 9603 7649 7897 6205 7345 2291 D Q 641 Y 7249 2685
Output (English): 10, 4935, 20, 3431, 3, 8525, 9, 16, 3181, 18, 23, 7841, 18, 3, 8643, 22, 9139, 9603, 7649, 7897, 6205, 7345, 2291, 4, 17, 641, 25, 7249, 2685