Task: Program Execution
Input (English): 5001 3109 W 3535 7621 r f D 2227 g 6571 R 6395 1335 d 6617 C 1073 3327 391 O 9925 4481 1383 9531 2635 r 7163 4169 449 J f 627 1949 F
Output (English): 5001, 3109, 23, 3535, 7621, 18, 6, 4, 2227, 7, 6571, 18, 6395, 1335, 4, 6617, 3, 1073, 3327, 391, 15, 9925, 4481, 1383, 9531, 2635, 18, 7163, 4169, 449, 10, 6, 627, 1949, 6