a = float(input("Marks in first subject (out of 100): "))
b = float(input("Marks in second subject (out of 100): "))
c = float(input("Marks in third subject (out of 100): "))

prcnt = ((a+b+c)/300)*100
print("The percentage marks of the student is", prcnt, "percent")
