Task: Program Execution
Input (English): 3, ['1323', '7527', 'R', '7583', 'O', '1991', 'S', '9123', 'O', '7183', '7755', '9481', '5863', '819', '1919', 'M', '9829']
Output (English): 1323, 7527, R