Task: Program Execution
Input (English): 7, ['3751', 'D', '2727', '6161', 'O', 'x', '6023', '4773', 'P', 'N', 'R', '2995', '5193', 's', '6349', '861']
Output (English): 3751, 4773, 6349