Task: Program Execution
Input (English): 5917, 87, 2407, T, B, i, x
Output (English): 5917, 87, 2407