#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float m,t,s;
float z,h;
cin>>m>>t>>s;
if(t==0)
{
cout<<m<<endl;
return 0;
}
else
{
z=ceil(s/t);
if(z>=m)
{
cout<<"0"<<endl;
return 0;
}
else
{
h=m-z;
cout<<floor(h)<<endl;
return 0;
}
}
}