#include using namespace std; typedef long long ll; int main(){ ll x,y,z,off=0,ans; cin>>x>>y>>z; if(x<=z)++off; if(y<=z)++off; ans=z-off; cout<