def manhattan_distance(port):
    """Calculates the Manhattan distance from a
    node to the central port

    Args:
        port ((int,int)): coordinates of the port

    Returns:
        int: the Manhattan distince from the port
        to the central port
    """
    return abs(port[0]) + abs(port[1])