题目:http://acm.hdu.edu.cn/showproblem.php?pid=1049
#include<bits/stdc++.h>
#define INF 1e18
#define inf 1e9
#define min(a,b) a<b?a:b
#define max(a,b) a>b?a:b
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
#define IOS ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std ;
typedef long long ll;
typedef unsigned long long ull;
const ll _max = 205;
int main(){
IOS;
int n,u,d;
while(cin>>n>>u>>d){
if(!n&&!u&&!d) break;
int ans = 0;
while(n>0){
n-=u;
ans++;
if(n<=0) break;
n+=d;
ans++;
}
cout<<ans<<endl;
}
return 0;
}