eolymp
Competitions

PP1 Week 1 Introduction Part 2

Sum of squares of digits

Time limit 1 second
Memory limit 128 MiB

Four-digit positive integer is given. Find the sum of squares of its digits.

Input data

One four-digit positive integer n (1000n9999).

Output data

Print the sum of squares of digits of number n.

Examples

Input example #1
1234
Output example #1
30