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