Task: Program Execution
Input (English): u, 3145, B, 7491, m, 7435, 3209, C, g, M
Output (English): 2, 4, 6, 7