Task: Program Execution
Input (English): 5, ['x', '839', 'P', '3685', '6717', '7049', '407', '7733', 'h', 'N']
Output (English): 7049, 407, 7733, h, N