Task: Program Execution
Input (English): 3007 U p C M 6285 B 3251 j 8387 j D 6561 2543 L Z I 8763 2079 6327 2519 m 937 X 157 j m 1689 5567 q f 8117 9601 3023 z Q W S 4523 1745
Output (English): 3007, 21, 16, 3, 13, 6285, 2, 3251, 10, 8387, 10, 4, 6561, 2543, 12, 26, 9, 8763, 2079, 6327, 2519, 13, 937, 24, 157, 10, 13, 1689, 5567, 17, 6, 8117, 9601, 3023, 26, 17, 23, 19, 4523, 1745