**
**The Four Squares Theorem is a theorem in number theory
shown by Lagrange in 1770. This theorem states that every positive
whole number is a sum of four perfect squares. For example,

11 = 3^{2}+ 1^{2 }+ 1^{2 }+ 0^{2}

19 = 3^{2}+ 3^{2 }+ 1^{2 }+ 0^{2}

87 = 2^{2}+ 3^{2 }+ 5^{2 }+ 7^{2}

1197 = 32^{2}+ 12^{2 }+ 5^{2 }+ 2^{2}

As seen from above, the four perfect squares may include
duplicates or zeros.

For small numbers, it's usually easy to find the four
perfect squares that sums up to the number of interest. But for
large numbers, the four perfect squares are usually hard to find.