Task: Program Execution
Input (English): Q 6789 355 4575 E h q J 8845 T 2379 9393 8949 A 4563 163 B F 4945 F 5539 Y 3209 253 b 1333 G 6301 6097 x 6203 S
Output (English): 17, 6789, 355, 4575, 5, 8, 17, 10, 8845, 20, 2379, 9393, 8949, 1, 4563, 163, 2, 6, 4945, 6, 5539, 25, 3209, 253, 2, 1333, 7, 6301, 6097, 24, 6203, 19