a=input().split(" ")
x,y,z,p,q=a
r=len(a)
if int(x)<int(z) and int(y)<int(z):
    if int(p)>int(z) and int (q)> int (z):
        c=(int(x)+int(y)+int(z)+int(p)+int(q))/r
        print('Avarage is: %.2lf' %c)
else:
    print("Sorry Wrong Input")