#include using namespace std; typedef long long ll; signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(20); unsigned int a,b,x; ll n; cin>>a>>b>>x>>n; int t=0,v=0; unsigned int bl[2]={},w[2]={}; for(unsigned int i=0;i