print("Enter the coordinates of point A")
x1=int(input("X = "))
y1=int(input("Y = "))
print("\n","Enter the coordinates of point B")
x2=int(input("X = "))
y2=int(input("Y = "))
print("\n","Enter the coordinates of point C")
x3=int(input("X = "))
y3=int(input("Y = "))
print("\n","Enter the coordinates of point D")
x4=int(input("X = "))
y4=int(input("Y = "))
m1x=(x1+x2)/2
m1y=(y1+y2)/2
m2x=(x2+x3)/2
m2y=(y2+y3)/2
m3x=(x3+x4)/2
m3y=(y4+y3)/2
m4x=(x1+x4)/2
m4y=(y4+y1)/2
s=(((m2x-m1x)**2)+(m2y-m1y)**2)*0.5
A=(s*s)
print("(",x1,",",y1,")"," ","(",x2,",",y2,")")
print(' A____________B')
print(' | |')
print(' | |')
print(' | |')
print(' C____________D',)
print("(",x3,",",y3,")"," ","(",x4,",",y4,")")
print("\n","The area of square formed by the midpoints of square =",A)