print("Enter the coordinates")
X1=int(input("X1 = "))
Y1=int(input("Y1 = "))
X2=int(input("X2 = "))
Y2=int(input("Y2 = "))
X3=int(input("X3 = "))
Y3=int(input("Y3 = "))
S1=(((X2-X1)**2)+((Y2-Y1)**2))**(1/2)
S2=(((X3-X2)**2)+((Y3-Y2)**2))**(1/2)
S3=(((X3-X1)**2)+((Y3-Y1)**2))**(1/2)
S=(S1+S2+S3)/2
A=(S*(S-S1)*(S-S2)*(S-S3))**(1/2)
h1=(2*A)/S2
h2=(2*A)/S3
h3=(2*A)/S1
print("\n",' A',"(",X1,",",Y1,")")
print(' /\ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' /______________\ ')
print('B',' C')
print("(",X2,",",Y2,")"," ","(",X3,",",Y3,")")
print("\n","The coordinates of Point A = (",X1,",",Y1,")","\n","The coordinates of Point B = (",X2,",",Y2,")","\n","The coordinates of point C = (",X3,",",Y3,")","\n")
print("\n","Height of AB =",h3)
print("","Height of BC =",h2)
print("","Height of AC =",h1)