#Lutece2323. Help Fat_Dog Kill Bugs

Help Fat_Dog Kill Bugs

Migrated from Lutece 2323 Help Fat_Dog Kill Bugs

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

pic

As you know, dogs are very cute and lovely. However, dogs are usually bugged by ants or other small insects. Fat_Dog is one of them who is bugged. His proper name suggests that he is heavy, but he's still very cute. I believe you are willing to help him solve this problem.

Let's simplify this problem. Fat_Dog has two abilities, valued XX and YY. What's more, he has NN magic books, and the ii-th book has a value aia_i. For each book, Fat_Dog can either increase YY by aia_i or decrease XX by aia_i. Fat_Dog wants to maximize Y2X2Y^2 - X^2 so that he can kill bugs as many as possible. Please tell him the maximum value.

Input

The first line contains three integers NN, XX and YY (0 < N  104,0 < X   Y  1000 < N \leq 10^4, 0 < X \leq  Y \leq 100).

The second line contains NN integers. The ii-th number means the value of the ii-th book aia_i (0<ai1000 < a_i \leq 100).

Output

Print the maximum value of Y2X2Y^2 - X^2.

Samples

3 1 1
1 1 1
15

Resources

电子科技大学第十一届 ACM 趣味程序设计竞赛