while True:
    try:
        n=list(map(int,input().split()))
        n.sort()
        a=(int(n[1])+int(n[2])+int(n[3])+int(n[4])+int(n[5]))/5
        print(f"{a:.2f}")
    except:
        break