import requests


def fetch_gutenberg_book(id: str) -> str:
    """Fetch a book from Gutenberg, given its ebook id."""
    url = "https://www.gutenberg.org/ebooks/{}.txt.utf-8".format(id)
    response = requests.get(url)
    response.raise_for_status()
    return response.text