Task: Program Execution
Input (English): 3, 4, ['8775', '3405', '3273', '7467', 'L', 'H']
Output (English): 76473723