Task: Program Execution
Input (English): 3, 3, ['7957', 'J', 'O', '1331', 'H', '4119', 'N', '1761']
Output (English): 0