Task: Program Execution
Input (English): 3895 G e Y s 3817 D u X U 7387 L 7147 19 9961 J 7761 8423 8509 o p 7869 M q B c n w o z 1217
Output (English): 3895, 7, 5, 25, 19, 3817, 4, 21, 24, 21, 7387, 12, 7147, 19, 9961, 10, 7761, 8423, 8509, 15, 16, 7869, 13, 17, 2, 3, 14, 23, 15, 26, 1217