Task: Program Execution
Input (English): G 2167 3655 9001 x 6651 9241 s 3603 I c 4695 j g 7919 6927 9641 3463 S v 3235 I 1941 1919 r 333 5671 X P Z 5531 X
Output (English): 7, 2167, 3655, 9001, 24, 6651, 9241, 19, 3603, 9, 3, 4695, 10, 7, 7919, 6927, 9641, 3463, 19, 22, 3235, 9, 1941, 1919, 18, 333, 5671, 24, 16, 26, 5531, 24