Task: Program Execution
Input (English): 3, 3, ['7159', '1427', '367', 'K']
Output (English): 367