Task: Program Execution
Input (English): 3, 5, ['8367', 'D', '3981', 'A', '7427']
Output (English): 3981A7427