Task: Program Execution
Input (English): F 6557 8621 W 6745 i 3355 m G d V 9823 A 1251 X M I t R 8733 1211 3001 8589 1017 8987 5071 4627 f 1477
Output (English): 6, 6557, 8621, 23, 6745, 9, 3355, 13, 7, 4, 22, 9823, 1, 1251, 24, 13, 9, 20, 18, 8733, 1211, 3001, 8589, 1017, 8987, 5071, 4627, 6, 1477