e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

The square of sum

The square of sum

Find the square of sum of digits for a four digital positive integer.

Input

One four digital positive integer.

Output

Print the square of sum of digits for a given number.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4765
Output example #1
484