e-olymp
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