#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
};
int main() {
  point a, b, c;
  cin >> a.x >> a.y;
  if (a.x < 0) {
    b.x = a.x - abs(a.y);
    b.y = 0;
    c.x = 0;
    if (a.y < 0)
      c.y = b.x;
    else
      c.y = abs(b.x);
  } else {
    b.x = 0;
    c.x = a.x + abs(a.y);
    c.y = 0;
    if (a.y < 0)
      b.y = 0 - c.x;
    else
      b.y = c.x;
  }
  cout << b.x << " " << b.y << " " << c.x << " " << c.y << endl;
  return 0;
}
