Task: Program Execution
Input (English): f 7783 1429 3137 O 4863 X 9875 i z 8897 d 3169 M Q 4245 U z 7535 r f 9073 8085 5515 5173 Y 6985 J x 6023
Output (English): 6, 7783, 1429, 3137, 15, 4863, 24, 9875, 9, 26, 8897, 4, 3169, 13, 17, 4245, 21, 26, 7535, 18, 6, 9073, 8085, 5515, 5173, 25, 6985, 10, 24, 6023