Task: Program Execution
Input (English): 971, b, 4767, 2515, 3821, 4363, B, J, 3677, 6299
Output (English): 2, 7, 8