int main(){ long long a,b,x,n; scanf("%lld%lld%lld%lld",&a,&b,&x,&n); if(x%2==1){ printf("%lld 0\n",n/2); } else{ printf("0 %lld\n",n/2); } }