def find_median(a: int, b: int, c: int) -> int:
    """Find median of three elements"""
    x = a - b
    y = b - c
    z = a - c

    if x * y > 0:
        return b

    if x * z > 0:
        return c

    return a