Problems
Sum of squares of digits
Sum of squares of digits
Four-digit positive integer is given. Find the sum of squares of its digits.
Input data
One four-digit positive integer n (1000 ≤ n ≤ 9999).
Output data
Print the sum of squares of digits of number n.
Examples
Input example #1
1234
Output example #1
30