Task: Program Execution
Input (English): B 6567 r Q O 5093 k I l 5199 r 4445 o 6115 K 6063 6455 3479 4931 d t 8647 2917 7723 8587 r 2645 A 3647 4475 c 7143
Output (English): 2, 6567, 18, 17, 15, 5093, 11, 9, 12, 5199, 18, 4445, 15, 6115, 11, 6063, 6455, 3479, 4931, 4, 20, 8647, 2917, 7723, 8587, 18, 2645, 1, 3647, 4475, 3, 7143