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