#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, ab;
  cin >> a;
  cin >> b;
  cin >> c;
  ab = a - b;
  if (ab = 0) {
    cout << 0;
  } else {
    cout << c - ab << endl;
  }
}
