print one line of occuring elements