AlgoUniversity
  • Go Back
Discussion
Sum Of Four :

Author

Akshay Sharma

Difficulty Level : Easy

Submissions : 75

Asked In : HCL

Marks :100

: 1 | : 1

You are given four integers a,b,c and d. Find the sum of the negative number out of these four numbers and print the same.

Input

the first line of the test case contains 4 integers separated by spaces a,b,c and d. ($$$-10^3 \le a,b,c,d \le 10^3$$$)

Output

Print the sum of negative number out of these four numbers

Examples

Input
2 -3 -14 7
Output
-17
Input
12 43 1 0
Output
0

Note

Print 0 if no negative number is present

You need to login to view your submissions.

You need to login to view all submissions.

Loading...

Result : Executed

Loading...

Feel something is wrong with the test cases?

Result : Accepted

Test Cases :

You need to Log In
We're glad that you want to attempt this problem!

But to Run or Submit the Problem, you need to Log In.

Continue to Log In
Challenge Submitted!

Your challenge has been submitted successfully.

You will get a response soon via WhatsApp or Email.

Challenge
Facing issue while trying to solve the problem! Don't worry, we got you covered!

Do let us know your issue.

Looks good!
Please enter your issue / feedback.

How do we get in touch with you?
Looks good!
Please enter your phone no.
Looks good!
Please enter your email address.