#include using namespace std; typedef long long ll; typedef long int li; typedef long double lb; #define rep(i,j,n) for (ll i = j; i < (n); i++) #define repr(i,j,n) for(ll i = j; i >= (n); i--) #define all(x) (x).begin(),(x).end() #define CLR(mat,f) memset(mat, f, sizeof(mat)) #define IN(a, b, x) (a<=x&&x inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef pairP; const ll mod=1e9+7; const ll INF = 1LL<<60; const ll m=1LL<<32; int main(){ ll a,b,c,n;cin>>a>>b>>c>>n; if(c%2){ out(n/2<<" "<<0); }else{ out(0<<" "<