Task: Program Execution
Input (English): 2, 3, ['i', 't', '6129', 'p', 'F', '4023', '4937', 'h', '6735', '5361', 'l', '3645', 'M', 'H', 'm', 't']
Output (English): 6129