#P25. 练6.2 兴趣小组

练6.2 兴趣小组

Description

In Class 2 of Grade 4 at Yucai Primary School, there are nn students in total. Among them, aa students participate in the Chinese interest group, bb students participate in the mathematics interest group, and cc students participate in both groups. How many students are not participating in either group?

Input Format

Input consists of a single line with positive integers nn (0<n100000 < n \le 10000), aa, bb, cc (a,b,cna,b,c \le n and c<min(a,b)c < \min(a,b)).

Output Format

Output the number of students who are not participating in either interest group.

Sample

46 21 18 9
16