Task: Program Execution
Input (English): d f f 8769 3101 7459 M 1047 7305 k q 7891 531 9537 Y G m X 2445 p d 4999 u 3159 D 3001 2151
Output (English): 4, 6, 6, 8769, 3101, 7459, 13, 1047, 7305, 11, 17, 7891, 531, 9537, 25, 7, 13, 24, 2445, 16, 4, 4999, 21, 3159, 4, 3001, 2151