What is the sum (in base $10$) of all the natural numbers less than $64$ which have exactly three ones in their base $2$ representation?

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