Task: Program Execution
Input (English): 9677 O D g L 6475 7823 q e r L O 2593 R 2535 j 7437 1645 599 8529 I 9777 X 4557 Z 1619 7677 2441 1529 h 9501 K 1361
Output (English): 9677, 15, 4, 7, 12, 6475, 7823, 17, 5, 18, 12, 15, 2593, 18, 2535, 10, 7437, 1645, 599, 8529, 9, 9777, 24, 4557, 26, 1619, 7677, 2441, 1529, 8, 9501, 11, 1361