Task: Program Execution
Input (English): M 6527 M s 9899 4033 L y 2209 977 J o 1421 D 3323 a 8067 d p 3011 5025 a B 9603 4881 8147
Output (English): 13, 6527, 13, 19, 9899, 4033, 12, 25, 2209, 977, 10, 15, 1421, 4, 3323, 1, 8067, 4, 16, 3011, 5025, 1, 2, 9603, 4881, 8147