Task: Program Execution
Input (English): m I 2885 9887 y M 7501 Q S 1789 N 8835 R X I e Y 4967 1511 J 7891 6147 c 1735 L 4229
Output (English): 13, 9, 2885, 9887, 25, 13, 7501, 17, 19, 1789, 14, 8835, 18, 24, 9, 5, 25, 4967, 1511, 10, 7891, 6147, 3, 1735, 12, 4229