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