from datetime import datetime


def week_num(dt: datetime):
    """Returns week number of the given day
    """
    dt_first = dt.replace(day=1)
    dt_first_weekday = dt_first.weekday()
    return int((dt.day + dt_first_weekday - 1) / 7)