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