Task: Program Execution
Input (English): S 1823 7679 6041 2475 w 161 m 9007 8879 w 4427 q P 6649 k f 6813 683 S p t 7107 7325 O 9723 G 1435 9463 r 863 h A 1461
Output (English): 19, 1823, 7679, 6041, 2475, 23, 161, 13, 9007, 8879, 23, 4427, 17, 16, 6649, 11, 6, 6813, 683, 19, 16, 20, 7107, 7325, 15, 9723, 7, 1435, 9463, 18, 863, 8, 1, 1461