Task: Program Execution
Input (English): B, 7865, 123, 9561, 6395, 6657, T, 297
Output (English): 2, 3, 4, 5, 6, 8