#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100000 + 100;
const int maxw = 10000000 + 20;
const int MAXNNODE = 1000000 + 10;
const long long LLMAX = 0x7fffffffffffffffLL;
const long long LLMIN = 0x8000000000000000LL;
const int INF = 0x7fffffff;
const int IMIN = 0x80000000;
const double PI = acos(-1.0);
int main() {
  int x, y, x1, x2, y1, y2;
  while (scanf("%d%d", &x, &y) != EOF) {
    int sum = abs(x) + abs(y);
    if (x > 0 && y > 0) {
      x1 = 0;
      x2 = sum;
      y1 = sum;
      y2 = 0;
    } else if (x < 0 && y > 0) {
      x1 = -sum;
      y1 = 0;
      x2 = 0;
      y2 = sum;
    } else if (x < 0 && y < 0) {
      x1 = -sum;
      x2 = 0;
      y1 = 0;
      y2 = -sum;
    } else {
      x1 = 0;
      x2 = sum;
      y1 = -sum;
      y2 = 0;
    }
    printf("%d %d %d %d\n", x1, y1, x2, y2);
  }
  return 0;
}
