#include<stdio.h> int main() { int m,t,s,n; scanf("%d%d%d",&m,&t,&s); if(t==0) { printf("%d",m); } else { if(s%t!=0&&t!=0) n=m-(s/t+1); if(s%t==0&&t!=0) n=m-s/t; if(s/t>m) n=0; printf("%d",n); } }