Let's use the inclusion-exclusion principle. The number of attendees at the concert equals .
Since , , ≤ , we should use the long long type.
Read the input data. Calculate and print the answer a + b - c.
scanf("%lld %lld %lld", &a, &b, &c);
res = a + b - c;
printf("%lld\n", res);