The two ends of a train moving with constant acceleration pass a certain point with velocities u and v. The velocity with which the middle point of the train passes the same point is