Task: Program Execution
Input (English): S 7395 X D u u 319 J 95 1829 97 S 5627 607 m M K 4185 H x p 3185 V 1819 B 4793 3829 807
Output (English): 19, 7395, 24, 4, 21, 21, 319, 10, 95, 1829, 97, 19, 5627, 607, 13, 13, 11, 4185, 8, 24, 16, 3185, 22, 1819, 2, 4793, 3829, 807