Task: Program Execution
Input (English): g G X 2849 l D O 7941 h A 4061 l 2453 S m K 7145 Z G B L X 9471 J W h 8961 M 3353
Output (English): 7, 7, 24, 2849, 12, 4, 15, 7941, 8, 1, 4061, 12, 2453, 19, 13, 11, 7145, 26, 7, 2, 12, 24, 9471, 10, 23, 8, 8961, 13, 3353