#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int ans;
  if ((x > 0 && y > 0) || (x < 0 && y < 0)) {
    ans = x + y;
    if (ans > 0) {
      cout << "0 " << ans << " " << ans << " 0" << endl;
    } else {
      cout << ans << " 0 "
           << "0 " << ans << endl;
    }
  } else {
    ans = -x + y;
    if (ans > 0) {
      int nans = -ans;
      cout << nans << " 0 "
           << "0 " << ans << endl;
    } else {
      int nans = -ans;
      cout << "0 " << ans << " " << nans << " 0" << endl;
    }
  }
}
