Type: RemoteJudge 1000ms 256MiB

练6.2 兴趣小组

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

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

输入格式

在一行输入正整数 n(0<n10000 0 < n \leq 10000 )、a a b b c c (a,b,cna, b, c \leq n c<min(a,b) c < \min(a, b) )。

输出格式

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

样例

输入:

46 21 18 9

输出:

16

寒假集训_01_05

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2025-1-5 14:00
End at
2025-1-5 17:00
Duration
3 hour(s)
Host
Partic.
41