Task: Program Execution
Input (English): B, M, 1971, 441, G, R
Output (English): 1971, 441