sub1=int(input("Enter the marks for sub1"))
sub2=int(input("Enter the marks for sub2"))
sub3=int(input("Enter the marks for sub3"))
marks=(sub1+sub2+sub3)/3

if marks >=40:
    print("passed with percentage:",marks)
    
