http://acm.hdu.edu.cn/showproblem.php?pid=1049
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int high , up , down ;
while( cin >> high >> up >> down )
{
if( high == 0 && up == 0 && down == 0 )
break ;
int t = 0 ;
int i = 0 ;
while( high )
{
if( high - up <= 0 )
{ t++ ;
cout << t << endl ;
break ;
}
if( high - up > 0 )
{
high -= up ;
t++ ;
if( high > 0 )
{
high += down ;
t++ ;
}
}
i++ ;
}
}
return 0 ;
}