def rank_emoji(i: int) -> str:
    """Returns a rank emoji for a leaderboard."""
    if i < 3:
        return (
            '\N{FIRST PLACE MEDAL}',
            '\N{SECOND PLACE MEDAL}',
            '\N{THIRD PLACE MEDAL}',
        )[i]
    return '\N{SPORTS MEDAL}'