Task: Program Execution
Input (English): 4, 6, ['5749', 'R', '2679', 'D', '891', '8763']
Output (English): 8763, 891, D