Task: Program Execution
Input (English): 2, 4, ['s', 'A', '4009', 'D', '6667', '4587']
Output (English): D9004A