formating input stream to consol