Task: Program Execution
Input (English): C 5257 c 1923 R T 3083 i d B 7757 F t 6947 v 9483 M 4869 4237 m h l 8635 N 9701 H 8371 G 2217 841 809 H 1117
Output (English): 3, 5257, 3, 1923, 18, 20, 3083, 9, 4, 2, 7757, 6, 20, 6947, 22, 9483, 13, 4869, 4237, 13, 8, 12, 8635, 14, 9701, 8, 8371, 7, 2217, 841, 809, 8, 1117