Money Management
Description
You have decided to manage your expenses. In order to do that, you have arranged all your bills in the form of an array. Your monthly salary is K Rs. If the total expenditure that you make is more than your salary, print "Debt". If the total expenditure is less than your monthly salary, then print "Save". If the expenditure is equal to your salary, print "Neutral".
Input
The first line of the input contains N, the number of elements in the array. Next line contains N space separated integers, denoting the expenses. Last line of the test case contains K, your monthly salary.
Constraints
1 <= N < 100
1 <= A[i] <= 10
1 <= K <= 1000
Output
Print the output as per the conditions mentioned in the problem statement.
Hint
In the first sample test case, the total expense was 15 Rs, and your salary is 16 Rs. Therefore, the output is "Save".
In the second test case, the total expense was 15 Rs, and the salary is also 15 Rs. Therefore, the output is "Neutral".
Comments
Post a Comment