Task: Program Execution
Input (English): 5213 T 3915 M t 7969 m 8055 W 6253 I 399 R T 9085 3711 Q 3569 c 7807 8951 I s y 9267 4447
Output (English): 5213, 20, 3915, 13, 20, 7969, 13, 8055, 23, 6253, 9, 399, 18, 20, 9085, 3711, 17, 3569, 3, 7807, 8951, 9, 19, 25, 9267, 4447