Task: Program Execution
Input (English): 4, ['R', 'w', '2371', 'd', '1209', '3679', '1015', '7327', 'M', 'M']
Output (English): 1209, 3679, 1015, 7327, M, M