Task: Program Execution
Input (English): F 3051 V 425 X 623 s g 1807 2577 2443 P r 5669 C 4051 P P 185 4383 B P F b a 9473 7441 g 5637 9733 411 6097 t 6719 A 4647 K
Output (English): 6, 3051, 22, 425, 24, 623, 19, 7, 1807, 2577, 2443, 16, 18, 5669, 3, 4051, 16, 16, 185, 4383, 2, 16, 6, 2, 1, 9473, 7441, 7, 5637, 9733, 411, 6097, 20, 6719, 1, 4647, 11