Task: Program Execution
Input (English): 2, ['487', 'W', 'D', 'T']
Output (English): 487, W