Task: Program Execution
Input (English): 2, 4, ['895', '4107', 'D', 'S', 's']
Output (English): 4107DS