#include<bits/stdc++.h> using namespace std; int main(){ int m,t,s; cin>>m>>t>>s; int ans; if(t==0){ cout<<m; return 0; }else{ if(s%t==0){ cout<<max(m-s/t,0); }else{ cout<<max(m-s/t-1,0); } } }