Task: Program Execution
Input (English): 3, ['3889', '3453', '8561', 'Y', '6795', '1143', '361', '8763', '1565', '8549', '8677', '1057', 'n', '6215', '1997']
Output (English): 3889, 3453, 8561