Task: Program Execution
Input (English): r, m, B, i, h, 8585, G, 597, 5551, M, 3681, 3213, c, 9259, K, m, g
Output (English): 1, 2, 3, 4, 5, 7, 10, 13, 15, 16, 17