print("Enter the Coordinates")
X1=int(input(" X1 = "))
Y1=int(input(" Y1 = "))
Z1=int(input(" Z1 = "))
X2=int(input(" X2 = "))
Y2=int(input(" Y2 = "))
Z2=int(input(" Z2 = "))
X3=int(input(" X3 = "))
Y3=int(input(" Y3 = "))
Z3=int(input(" Z3 = "))
M1=(X1+X2+X3)/3
M2=(Y1+Y2+Y3)/3
M3=(Z1+Z2+Z3)/3
print("\n","The coordinates of A = (",X1,",",Y1,",",Z1,")","\n","The coordinates of B = (",X2,",",Y2,",",Z2,")","\n","The coordinates of C = (",X3,",",Y3,",",Z3,")","\n")
print("As, midpoint = ","X1+X2+X3",",","Y1+Y2+Y3",",","Z1+Z2+Z3")
print(" -------- -------- --------")
print(" 3 3 3 ")
print("Therefore, midpoint of these points = (",M1,",",M2,",",M3,")")