You may assume that there are no more than 80 characters per line and no more than 10 lines of input will be entered. Toggle bold characters. Toggle underline characters. Insert a new line. The end of one line of input does not result in a new line.
Text can be both underlined and bold simultaneously.
It does not matter if underline or bold is not turned off at the end of input. The Quick Formatting Markup Language does not define error messages so do not print any.