Task: Program Execution
Input (English): B, 4789, U, 6665, r, 7015, 9635, 3831, 7729, M
Output (English): B, U, r, M