Task: Program Execution
Input (English): 5019, 5207, 5387, v, 6187, u, B
Output (English): 5019, 5207, 5387, 6187