Task: Program Execution
Input (English): R i 1469 r 2993 3671 R 8187 i Z 8727 A M F 4329 2401 5129 T 1481 l l o 8909 7001 3799 S
Output (English): 18, 9, 1469, 18, 2993, 3671, 18, 8187, 9, 26, 8727, 1, 13, 6, 4329, 2401, 5129, 20, 1481, 12, 12, 15, 8909, 7001, 3799, 19