School Olympiad#6272

School Olympiad

1 second
128 megabytes
Very easy (≈850)

At school programming contest the participants were asked to solve two problems. students completely coped with the given tasks, and students solved nothing.

How many participants were in the competition if there were correct submissions accepted for the first task, and correct submissions for the second task.

Input

Nonnegative integers a, b, c and , not greater than .

Output

Print the number of participants at school programming contest.

Examples

Example 1

Loading
Loading