print("Enter the coordinates of midpoint of AB")
x1=int(input("x1 of midpoint = "))
y1=int(input("y1 of midpoint = "))
print("Enter the coordinates of midpoint of BC")
x2=int(input("x2 of midpoint = "))
y2=int(input("y3 of midpoint = "))
print("Enter the coordinates of midpoint of AC")
x3=int(input("x3 of midpoint = "))
y3=int(input("y3 of midpoint = "))
X1=x1+x3-x2
Y1=y1+y3-y2
X2=x1+x2-x3
Y2=y1+y2-y3
X3=x2+x3-x1
Y3=y2+y3-y1
print("\n",' A',"(",X1,",",Y1,")")
print(' /\ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' / \ ')
print(' /______________\ ')
print('B',' C')
print("(",X2,",",Y2,")"," ","(",X3,",",Y3,")")
print("\n","Midpoint of AB =(",x1,",",y1,")")
print("","Midpoint of BC =(",x2,",",y2,")")
print("","Midpoint of AC =(",x3,",",y3,")")
print("The coordinates of A = (",X1,",",Y1,")")
print("The coordinates of B = (",X2,",",Y2,")")
print("The coordinates of C = (",X3,",",Y3,")")