n1=int(input("enter the marks of first subject out of 100"))
n2=int(input("enter the marks of second subject out of 100"))
n3=int(input("enter the marks of third subject out of 100"))
n4=int(input("enter the marks of fourth subject out of 100"))
n5=int(input("enter the marks of fifth subject out of 100"))
mean=n1+n2+n3+n4+n5
print mean
p=mean*100/500
print p
if p<35 :
    print("fail")
else :
    print("pass")
    
