Task: Program Execution
Input (English): B, 1173, 293, 7181, 6695, T, 1019, 5243, 9657, S, 879, 379
Output (English): 1173, 293, 7181, 6695, 1019, 5243, 9657, 879, 379