Task: Program Execution
Input (English): 3, 3, ['1131', 'n', '6221', '4421', '6119', '6383', 'h', '1055', 'q']
Output (English): 6221