Task: Program Execution
Input (English): 2, 5, ['5887', '8429', 'O', 'w', 'G', 'T', 'S']
Output (English): 8429OwG