Task: Program Execution
Input (English): P 1043 4053 1375 9739 M s 7949 3373 O 3081 h 8059 8363 K 1627 3133 c O T 7149 k 9693 7769 5469 2603 I J R
Output (English): 16, 1043, 4053, 1375, 9739, 13, 19, 7949, 3373, 15, 3081, 8, 8059, 8363, 11, 1627, 3133, 3, 15, 20, 7149, 11, 9693, 7769, 5469, 2603, 9, 10, 18