A = float(input("Digite: "))
B = float(input("Digite: "))
X = float(input("Digite: "))
Y = float(input("Digite: "))
XM = ((X*B) + (X*A))
YM = ((Y*B) + (Y*A))
print(round(XM/2,1))
print(round(YM/2,1))







