print(max(min(a, b, c), min(d, e)))