Task: Program Execution
Input (English): 331 g 5605 787 389 u K 3715 h H 8567 9213 9679 8097 T 7895 v M 1251 f v T 9895 8939 771 Q w 8341
Output (English): 331, 7, 5605, 787, 389, 21, 11, 3715, 8, 8, 8567, 9213, 9679, 8097, 20, 7895, 22, 13, 1251, 6, 22, 20, 9895, 8939, 771, 17, 23, 8341