Task: Program Execution
Input (English): 6, ['3659', 'N', '7517', '5527', '7219', 'X', '5537', '9359', 'B', 'g', '8247', '9739', 'a', 'X', '6999', '8943', 'b']
Output (English): 5537, 9359, B, g, 8247, 9739, a, X, 6999, 8943, b