Exact distribution of the maximal height of watermelons