E. 练6.2 兴趣小组

    Type: Default 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.

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

20250920A班作业(2)

Not Claimed
Status
Done
Problem
6
Open Since
2025-9-20 0:00
Deadline
2025-10-11 23:59
Extension
24 hour(s)