Social networks
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
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
Input #1
Answer #1
Submissions 1K
Acceptance rate 68%