#K15461. Sum of Squares

    ID: 24362 Type: Default 1000ms 256MiB

Sum of Squares

Sum of Squares

You are given a comma-separated list of integers as input. Your task is to compute the sum of the squares of these numbers.

For example, if the input is "1,2,3", then the output should be 12 + 22 + 32 = 14.

The input will be provided as a single line from stdin and your answer should be printed to stdout.

Note: Negative numbers should be squared as well (i.e. (-3)2 = 9).

inputFormat

The input consists of a single line containing a comma-separated list of integers. There are no extra spaces around the commas.

outputFormat

Output a single integer which is the sum of the squares of the given numbers.

## sample
1,2,3
14

</p>