Task: Program Execution
Input (English): 5, ['7201', 'l', '7583', 'r', 'M', '3183', '3907', '7247', '9277', '2711', 'U']
Output (English): 7201, 3183, U