Task: Program Execution
Input (English): 6, ['9459', '9149', '3527', '1011', 'N', 'X', 'O', 'X', 'c', 'T', '7765', '8045', 'J']
Output (English): O, X, c, T, 7765, 8045, J