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