Task: Program Execution
Input (English): R, M, i, 8777, Q, 3247, 4029, m, 6845, C, 7851, 2855, 5175
Output (English): 8777, 3247, 4029, 6845, 7851, 2855, 5175