x1=int(input()) #Centroid/Equidistant y1=int(input()) x2=int(input()) y2=int(input()) x3=int(input()) y3=int(input()) X=(x1+x2+x3)/3 Y=(y1+y2+y3)/3 print(round(X,4))