Task: Program Execution
Input (English): 1, 4, ['K', '8289', 'D', '2347', 'S']
Output (English): 2347D8289K