{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eIf you ever tried to read a html document on a Macintosh, you know how hard it is if no Netscape is installed. \u003cbr\u003eNow, who can forget to install a HTML browser? This is very easy because most of the times you don\u0027t need one on a MAC because there is a Acrobate Reader which is native to MAC. But if you ever need one, what do you do? \u003cbr\u003eYour task is to write a small html-browser. It should only display the content of the input-file and knows only the html commands (tags) \u0026lt;br\u0026gt; which is a linebreak and \u0026lt;hr\u0026gt; which is a horizontal ruler. Then you should treat all tabulators, spaces and newlines as one space and display the resulting text with no more than 80 characters on a line.\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The input consists of a text you should display. This text consists of words and HTML tags separated by one or more spaces, tabulators or newlines. \u003cbr\u003eA word is a sequence of letters, numbers and punctuation. For example, \"abc,123\" is one word, but \"abc, 123\" are two words, namely \"abc,\" and \"123\". A word is always shorter than 81 characters and does not contain any \u0027\u0026lt;\u0027 or \u0027\u0026gt;\u0027. All HTML tags are either \u0026lt;br\u0026gt; or \u0026lt;hr\u0026gt;.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"You should display the the resulting text using this rules: \u003cbr\u003e\u0026nbsp;\u0026nbsp;. If you read a word in the input and the resulting line does not get longer than 80 chars, print it, else print it on a new line. \u003cbr\u003e\u0026nbsp;\u0026nbsp;. If you read a \u0026lt;br\u0026gt; in the input, start a new line. \u003cbr\u003e\u0026nbsp;\u0026nbsp;. If you read a \u0026lt;hr\u0026gt; in the input, start a new line unless you already are at the beginning of a line, display 80 characters of \u0027-\u0027 and start a new line (again). \u003cbr\u003eThe last line is ended by a newline character.\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eHallo, dies ist eine \r\nziemlich lange Zeile, die in Html\r\naber nicht umgebrochen wird.\r\n\n\r\nZwei \n \n produzieren zwei Newlines. \r\nEs gibt auch noch das tag \u003chr\u003e was einen Trenner darstellt.\r\nZwei \u003chr\u003e \u003chr\u003e produzieren zwei Horizontal Rulers.\r\nAchtung mehrere Leerzeichen irritieren\r\n\r\nHtml genauso wenig wie\r\n\r\n\r\nmehrere Leerzeilen.\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eHallo, dies ist eine ziemlich lange Zeile, die in Html aber nicht umgebrochen\r\nwird.\r\nZwei\r\n\r\nproduzieren zwei Newlines. Es gibt auch noch das tag\r\n--------------------------------------------------------------------------------\r\nwas einen Trenner darstellt. Zwei\r\n--------------------------------------------------------------------------------\r\n--------------------------------------------------------------------------------\r\nproduzieren zwei Horizontal Rulers. Achtung mehrere Leerzeichen irritieren Html\r\ngenauso wenig wie mehrere Leerzeilen.\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}