Social networks#10226

Social networks

1 second
64 megabytes
Very easy

On Instagram, there are students registered, while on Facebook, there are students. Among these, students are registered on both social networks. Additionally, students do not use the Internet or social networks at all. Calculate the total number of students in the class.

Input

The input consists of a single line containing four integers: , , , and .

Output

Output a single number representing the total number of students in the class.

Examples

Example 1

Loading
Loading