A piece of cardboard has the shape of a pentagon $ABCDE$ in which $BCDE$ is a square and $ABE$ is an isosceles triangle with a right angle at $A$. Prove that the pentagon can be divided in two different ways in three parts that can be rearranged in order to recompose a right isosceles triangle.