Determine all integers $m$ for which the $m \times m$ square can be dissected into five rectangles, the side lengths of which are the integers $1,2,3, \ldots, 10$ in some order. Please provide the sum of all possible values of $m$. 

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