Task: Program Execution
Input (English): 4, 7, ['A', '4937', 'w', 'M', 'I', 'R', 'V']
Output (English): V, R, I, M