Task: Program Execution
Input (English): 5907 W 3585 3719 H 6765 9601 9777 M t C 2931 2487 1291 u F 7249 N h 4167 683 5283 v p 3293 Z 5967 3619 O 8187 7029 9811 5241 7269 6677 1955 5743
Output (English): 5907, 23, 3585, 3719, 8, 6765, 9601, 9777, 13, 20, 3, 2931, 2487, 1291, 21, 6, 7249, 14, 8, 4167, 683, 5283, 22, 16, 3293, 26, 5967, 3619, 15, 8187, 7029, 9811, 5241, 7269, 6677, 1955, 5743