Task: Program Execution
Input (English): 2977 z Q 8245 f 2557 5453 7989 4749 w 7449 a 4867 Q v 1523 9885 7963 5465 c 4081 w i I b 8173 J v q 7265
Output (English): 2977, 26, 17, 8245, 6, 2557, 5453, 7989, 4749, 23, 7449, 1, 4867, 17, 22, 1523, 9885, 7963, 5465, 3, 4081, 23, 9, 9, 2, 8173, 10, 22, 17, 7265