Task: Program Execution
Input (English): 2, ['2857', '2413', '9747', '1731', '1235', 'g']
Output (English): 2857, 2413, 9747, 1731