Problem1024--练6.2 兴趣小组

1024: 练6.2 兴趣小组

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 64 MB

Description

育才小学四年级二班共有n人,其中参加语文兴趣小组的有a个人,参加数学兴趣小组的有b个人,两者都参加的有c个人,那么有多少人两个小组都没有参加?

Input

在一行输入正整数n (0 < n ≤ 10000)、 a、 b、 c (a,b,c ≤ n 且 c < min(a,b))。

Output

输出有多少人两个兴趣小组都没有参加。

Sample Input Copy

46 21 18 9

Sample Output Copy

16