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