Task: Program Execution
Input (English): D 731 o P 2979 s 5573 p i G R 5507 3513 g V i 9843 I N 4201 F 4287 825 M 3607 x E f 3773 l m e o O w 3339
Output (English): 4, 731, 15, 16, 2979, 19, 5573, 16, 9, 7, 18, 5507, 3513, 7, 22, 9, 9843, 9, 14, 4201, 6, 4287, 825, 13, 3607, 24, 5, 6, 3773, 12, 13, 5, 15, 15, 23, 3339