Task: Program Execution
Input (English): R R 1363 2313 8851 X W 1657 i 3281 3933 j 167 5339 Z 1601 g 9581 271 X 8455 J 4199 D H 1673 8579 v 3219 q 1101 9493
Output (English): 18, 18, 1363, 2313, 8851, 24, 23, 1657, 9, 3281, 3933, 10, 167, 5339, 26, 1601, 7, 9581, 271, 24, 8455, 10, 4199, 4, 8, 1673, 8579, 22, 3219, 17, 1101, 9493