#include"iostream"
#include"cmath"
#include"algorithm"
using namespace std;
int main()
{
int t, s;
int m;
cin >> m >> t >> s;
if (t == 0)
{
cout << m << endl;
}
else
{
if (s % t == 0)
{
int x;
x = s/ t;
cout << max(m-x,0)<< endl;
}
else
{
int x;
x = s / t + 1;
cout << max(m-x ,0)<< endl;
}
}
return 0;
}