#include using namespace std; int main() { long long a, b, x0, N; cin >> a >> b >> x0 >> N; cout << (N * 2 - 1 + 2) / 4 << " " << 0 << endl; }