Task: Program Execution
Input (English): L, M, B, 3869, 7653, O, k
Output (English): 1, 2, 3, 6, 7