#P2314. Sum of Squares

    ID: 15588 Type: Default 1000ms 256MiB

Sum of Squares

Sum of Squares

This problem requires you to compute the sum of the squares of two given integers. In other words, given two integers \(a\) and \(b\), you are to calculate the value of $$a^2 + b^2$$.

You can assume that the input is provided in a single line with two space‐separated integers.

For example, if the input is "3 4", then the output should be "25" because \(3^2+4^2 = 9+16=25\).

inputFormat

A single line containing two space-separated integers (a) and (b).

outputFormat

Output a single integer which is the result of $$a^2 + b^2$$.

sample

3 4
25