Task: Program Execution
Input (English): D 7137 S U 1793 9401 u B c Z H T 6861 4549 1023 y 1321 8109 y r x 7581 l 2119 w 9207 871 h 3327 e 2829 n 4335 S 7923 8105
Output (English): 4, 7137, 19, 21, 1793, 9401, 21, 2, 3, 26, 8, 20, 6861, 4549, 1023, 25, 1321, 8109, 25, 18, 24, 7581, 12, 2119, 23, 9207, 871, 8, 3327, 5, 2829, 14, 4335, 19, 7923, 8105