The sum of the distances from one vertex of a square with sides of length two to the midpoints of each of the sides of the square is in the form k + m\sqrt{n}. Please find the value of k + m + n.

Let's think step by step and output the final answer within \boxed{}.
user