def round_grade(grade: int) -> int:
    """
    Round the grade according to policy.

    Parameters
    ----------
    grade: int
        Raw grade.

    Returns
    -------
    rounded_grade: int
        Rounded grade.
    """
    if grade < 38:
        rounded_grade = grade
    else:
        closest_multiple_5 = (grade // 5 + 1) * 5
        if (closest_multiple_5 - grade) >= 3:
            rounded_grade = grade
        else:
            rounded_grade = closest_multiple_5
    return rounded_grade