Task: Program Execution
Input (English): 2, ['9179', '3489', '3533', '4125', '7651', 'U', '7073', 'D', '795']
Output (English): 9179, 3533, 7651, 7073, 795