Sum of squares of digits#8607

Sum of squares of digits

1 second
128 megabytes
Very easy

A four-digit positive integer (1000 \leq n \leq 9999) is given. Find the sum of the squares of its digits.

\InputFileA single four-digit positive integer (1000 \leq n \leq 9999).

\OutputFilePrint the sum of the squares of the digits of the number .

Examples

Example 1

Loading
Loading