import re


def header(line):
    """
    add '>' if the symbol is missing at the end of line
    """
    line=line.strip()
    if re.match("##.*<.*", line) and line[-1:] != '>':
        line=line+'>'
    return line