#include<bits/stdc++.h>
#define int unsigned long long
using namespace std;
int cnt;
int a,b,c,d,e,f,g,h,k,x,y;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
cin>>a>>b>>c>>d>>e>>f>>g>>h>>k>>x>>y;
int exp=f;
int lp=d+x;
int pt=0;
while(pt<y)
{
if(lp>=b){
pt+=a;
f+=g;
if(exp>=e)
{
lp=lp+c-b+h;c+=h;
exp-=e;
e+=k;
}
else
{
lp-=b;
}
}
if(lp<b)
{
lp+=c;
cnt+=1;
}
}
cout<<cnt;
return 0;
}
```cpp