Task: Program Execution
Input (English): A 1657 4747 8743 Y 9109 1813 i A I 5737 4689 M 2309 Y 7055 Y M 2053 f 3909 Y 7329 o 609 217 S Z
Output (English): 1, 1657, 4747, 8743, 25, 9109, 1813, 9, 1, 9, 5737, 4689, 13, 2309, 25, 7055, 25, 13, 2053, 6, 3909, 25, 7329, 15, 609, 217, 19, 26