#include<bits/stdc++.h> using namespace std; int n,x,y; int main(){ cin>>n>>x>>y; cout<<n-(y/x+y%x)<<endl; return 0; }