Task: Program Execution
Input (English): 2, 3, ['H', '6787', 'd', 'w', 'L', 'T', '3233', 'n', '4997', '6429', '8079', '6179']
Output (English): 6787