eolymp
bolt
Try our new interface for solving problems

Debts

Alice now has a hryvnias. She remembers that Petya owes her b hryvnias, Svetlana owes her c hryvnias. However, Alice owes Roma d hryvnia.

If everyone repays their debts, how many hryvnias will Alice have?

Input

The first line contains one integer a (1a100) - the amount of hryvnias that Alice has.

The second line contains a single integer b (1b100) - the amount of hryvnia that Petya owes Alisa.

The third line contains a single integer c (1c100) - the amount of hryvnia that Svetlana owes Alisa.

The fourth line contains a single integer d (1d100) - the amount of hryvnias that Alisa owes Roma.

It is guaranteed that Alice will end up with a non-negative amount of hryvnias.

Output

Print one integer - the amount of hryvnias that Alice will have.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
2
3
4
Output example #1
6
Input example #2
7
4
4
15
Output example #2
0
Author Anton Tsypko
Source 2023 UOI. Stage II