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