def dec_to_sex(d):
    """Convert decimal degree value to sexigisimal-formatted string."""
    degrees, minutes = divmod(60 * d, 60)
    minutes, seconds = divmod(60 * minutes, 60)
    return f'{degrees:3d}{minutes:02d}{seconds:02d}'