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 = "))
S1=((X2-X1)**2+(Y2-Y1)**2+(Z2-Z1)**2)**(1/2)
S2=((X3-X2)**2+(Y3-Y2)**2+(Z3-Z2)**2)**(1/2)
S3=((X3-X1)**2+(Y3-Y2)**2+(Z3-Z1)**2)**(1/2)
print("\n","The cooridnates of A = (",X1,",",Y1,",",Z1,")","\n","The coordinates of B = (",X2,",",Y2,",",Z2,")","\n","The coordinates of C = (",X3,",",Y3,",",Z3,")","\n")
print("\n","The distance of AB = ",S1,"\n","The distance of BC = ",S2,"\n","The distance of AC = ",S3)