import math

def otherside_rightangle(w, h):
    return math.sqrt(abs(w**2 - h**2)) if max(w, h) == h or max(w, h) == w else math.sqrt(w**2 + h**2)

def otherside_rightangle(w, h):
    return round(math.sqrt(w**2 + h**2), 2)