
    Calculate the shortest possible distance a delivery truck must travel to reach its destination when forced to detour through two perpendicular street segments, where one segment is w units long and the other is h units long. The truck needs to determine this optimal path length to evaluate whether the detour route is feasible within its delivery time constraints.
    

    
import math

def otherside_rightangle(w, h):
    """
    Calculate the shortest possible distance a delivery truck must travel to reach its destination when forced to detour through two perpendicular street segments, where one segment is w units long and the other is h units long. The truck needs to determine this optimal path length to evaluate whether the detour route is feasible within its delivery time constraints.
    

    """
import math

def otherside_rightangle(w, h):
    """
    Calculate the shortest possible distance a delivery truck must travel to reach its destination when forced to detour through two perpendicular street segments, where one segment is w units long and the other is h units long. The truck needs to determine this optimal path length to evaluate whether the detour route is feasible within its delivery time constraints.
    

    """
    s = math.sqrt(w * w + h * h)
    return s