Debts
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
Alice currently has hryvnias. She remembers that Petro owes her hryvnias and Svitlana owes her hryvnias. However, Alice owes Romchik hryvnias.
If everyone pays back their debts, how many hryvnias will Alice have?
Input
The first line contains one integer () — the number of hryvnias Alice has.
The second line contains one integer () — the number of hryvnias that Petro owes Alice.
The third line contains one integer () — the number of hryvnias that Svitlana owes Alice.
The fourth line contains one integer () — the number of hryvnias that Alice owes Romchik.
It is guaranteed that Alice will have a non-negative amount of hryvnias in the end.
Output
Output one integer — the answer to the problem.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 544
Acceptance rate 75%