Task: Program Execution
Input (English): B, T, a, 9959, 3139, 2143, 8395, 1673
Output (English): 4, 5, 6, 7, 8