#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    int r=c-(a-b);
    if(r<=0)
        printf("0\n");
    else
        printf("%d\n",r);
    return 0;
}
