Task: Program Execution
Input (English): 3, ['5383', 'G', '6197', '9455', '9605', '2041', '1807', 'p']
Output (English): 5383, 9455, 1807