1312 - 【入门】平方求和

周周有 n 个数,他想要计算这 n 个数的平方和,你能帮他吗?

Input

第一行是一个整数 n,表示数的个数,第二行是 n 个数,用空格隔开,满足 n\le 100,每个数的绝对值不超过 100000

Output

输出这 n 个数的平方和

Examples

Input

3
1 2 3

Output

14

Hint

使用 while 循环输入并计算即可。

Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题