my %u; print grep !$u{$_}++, <>;