class Header:
    def __init__(self, level: int, text: str):
        self.level = level
        self.text = text

    def as_markdown(self):
        return f'{"#" * self.level} {self.text}\n'


class CodeBlock:
    def __init__(self, code: str):
        self.code = code

    def as_markdown(self):
        return f'```\n{self.code}\n```\n'


class Markup:
    def __init__(self):
        self.elements = []

    def header(self, level: int, text: str):
        self.elements.append(Header(level, text))
        return self

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])

3ccbd2907701b165392c9bdd04a4f55bf307cd93
<mask token>


class Markup:

    def __init__(self):
        self.elements = []
    <mask token>

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])

<mask token>


class CodeBlock:

    def __init__(self, code: str):
        self.code = code
    <mask token>


class Markup:

    def __init__(self):
        self.elements = []

    def header(self, level: int, text: str):
        self.elements.append(Header(level, text))
        return self

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])

<mask token>


class CodeBlock:

    def __init__(self, code: str):
        self.code = code

    def as_markdown(self):
        return f'```\n{self.code}\n```\n'


class Markup:

    def __init__(self):
        self.elements = []

    def header(self, level: int, text: str):
        self.elements.append(Header(level, text))
        return self

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])

class Header:
    <mask token>
    <mask token>


class CodeBlock:

    def __init__(self, code: str):
        self.code = code

    def as_markdown(self):
        return f'```\n{self.code}\n```\n'


class Markup:

    def __init__(self):
        self.elements = []

    def header(self, level: int, text: str):
        self.elements.append(Header(level, text))
        return self

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])

class Header:
    def __init__(self, level: int, text: str):
        self.level = level
        self.text = text

    def as_markdown(self):
        return f'{"#" * self.level} {self.text}\n'


class CodeBlock:
    def __init__(self, code: str):
        self.code = code

    def as_markdown(self):
        return f'```\n{self.code}\n```\n'


class Markup:
    def __init__(self):
        self.elements = []

    def header(self, level: int, text: str):
        self.elements.append(Header(level, text))
        return self

    def code_block(self, text: str):
        self.elements.append(CodeBlock(text))
        return self

    def section(self, level: int, title: str, body: str):
        return self.header(level, title).code_block(body)

    def as_markdown(self):
        return '\n'.join([e.as_markdown() for e in self.elements])
