while True: try: l = [int(x) for x in input().split()] t=(sum(l)-max(l)-min(l))/4 if t == int(t): print(int(t)) else: print(t) except: break
Double click to view unformatted code.