prints the longest line from cin