import aiohttp
from typing import Tuple


async def get_html_contest(
    session: aiohttp.ClientSession,
    contest_id: int,
) -> Tuple[int, str]:
    """Get html of the contest main page.

    Args:
        session (aiohttp.ClientSession) : session
        contest_id (int) : contest id of the contest

    Returns:
        Tuple[int, str] : contest_id, html code of the contest.
    """
    url = "http://codeforces.com/contest/{contest_id}?locale=ru".format(
        contest_id=contest_id,
    )
    async with session.get(url) as resp:
        return contest_id, await resp.text()