print type of each written message