Task: Program Execution
Input (English): 1797 5333 m 5099 H 5221 6817 B Z o i g P 333 7559 6445 e V 4021 6873 C 9865 U R w 4807 s
Output (English): 1797, 5333, 13, 5099, 8, 5221, 6817, 2, 26, 15, 9, 7, 16, 333, 7559, 6445, 5, 22, 4021, 6873, 3, 9865, 21, 18, 23, 4807, 19