Task: Program Execution
Input (English): 8109, 2305, 2405, 3667, 1229, M, 5217, 4661, L, L, b
Output (English): 1, 2, 3, 4, 5, 7, 8