Task: Program Execution
Input (English): 4, ['317', 'x', '4361', '4389', '3953', 'a', 'J', 'U']
Output (English): 317, x, 4361, 4389