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