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