SUBTRACTION (A2OJ) - Need help

Hello Coders,

I am trying to solve problem from A2OJ. Here is my solution I am not able to get why I am getting WA. Help would be appreciated. Thanks.

check your output for this TC
2 100 5 5 5 5
for this output could be 2-(100-5-5-5-5) = 2-80=-78.
your output : -88.

simple solution :

Thanks. I will check you code. But what is wrong with my code?