Task: Program Execution
Input (English): N 8371 j 9581 m 9723 t 153 C 2723 Q 487 K T v 9307 v P 769 q d D 1127 H R 5393 5321 7621
Output (English): 14, 8371, 10, 9581, 13, 9723, 20, 153, 3, 2723, 17, 487, 11, 20, 22, 9307, 22, 16, 769, 17, 4, 4, 1127, 8, 18, 5393, 5321, 7621