Task: Program Execution
Input (English): 4511 3187 A 4469 7071 d 3401 4495 D O 1637 X 4547 4637 S D 4555 7091 N 1603 n O 429 6795 m 8921 5357 101 7671 7121 2667
Output (English): 4511, 3187, 1, 4469, 7071, 4, 3401, 4495, 4, 15, 1637, 24, 4547, 4637, 19, 4, 4555, 7091, 14, 1603, 14, 15, 429, 6795, 13, 8921, 5357, 101, 7671, 7121, 2667