
    Write a function that calculates the total route complexity score by taking the number of delivery zones as input and summing the squares of traffic density scores for zones with balanced two-way traffic flow (represented by even numbers) up to the given number of zones. The resulting score helps determine optimal delivery routes based on traffic patterns across the service area.
    

    
def square_Sum(n):
    """
    Write a function that calculates the total route complexity score by taking the number of delivery zones as input and summing the squares of traffic density scores for zones with balanced two-way traffic flow (represented by even numbers) up to the given number of zones. The resulting score helps determine optimal delivery routes based on traffic patterns across the service area.
    

    """
def square_Sum(n):
    """
    Write a function that calculates the total route complexity score by taking the number of delivery zones as input and summing the squares of traffic density scores for zones with balanced two-way traffic flow (represented by even numbers) up to the given number of zones. The resulting score helps determine optimal delivery routes based on traffic patterns across the service area.
    

    """
    return int(2 * n * (n + 1) * (2 * n + 1) / 3)