#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int x1, x2, y1, y2;
  int tx1, tx2, ty1, ty2;
  if (x > 0) {
    x1 = 0;
    x2 = x + abs(y);
    y2 = 0;
    if (y > 0) {
      y1 = x + y;
    } else {
      y1 = -x + y;
    }
  } else {
    x1 = x - abs(y);
    x2 = 0;
    y1 = 0;
    if (y > 0) {
      y2 = -x + y;
    } else {
      y2 = x + y;
    }
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
  return 0;
}
