Task: Program Execution
Input (English): 5, 5, ['2361', '8131', 'O', 'N', '3135']
Output (English): 3135