Task: Program Execution
Input (English): D 9617 G V N E W l 6617 673 2895 3951 q 1727 m 8581 477 Q 3261 4813 e a c 4117 683 x 5799 9721 6469 2203 8225
Output (English): 4, 9617, 7, 22, 14, 5, 23, 12, 6617, 673, 2895, 3951, 17, 1727, 13, 8581, 477, 17, 3261, 4813, 5, 1, 3, 4117, 683, 24, 5799, 9721, 6469, 2203, 8225