Task: Program Execution
Input (English): D p 5121 M 4331 6279 7571 x 8227 V H 8109 3467 347 7821 Q 6213 4619 S 9445 2255 6137 9635 e 3429 3117 m s 4127
Output (English): 4, 16, 5121, 13, 4331, 6279, 7571, 24, 8227, 22, 8, 8109, 3467, 347, 7821, 17, 6213, 4619, 19, 9445, 2255, 6137, 9635, 5, 3429, 3117, 13, 19, 4127