#include<iostream> using namespace std; int main(){ int m,t,s; cin>>m>>t>>s; while(s%t) s++; cout<<m-s/t; return 0; }
RT