#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,y,n;
	cin>>x>>y>>n;
	cout<<n-(x+y);
	
}
/**************************************************************
	Problem: 1597
	User: zhengzihao
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/