#include <bits/stdc++.h>
int ab(int x) {
  if (x < 0) {
    x = x * -1;
  }
  return x;
}
int main() {
  int x, y, z, x1, x2, y1, y2;
  scanf("%d %d", &x, &y);
  z = ab(x) + ab(y);
  if (x < 0) {
    x1 = -1 * z;
    x2 = 0;
    if (y < 0) {
      y1 = 0;
      y2 = -1 * z;
    } else {
      y1 = 0;
      y2 = z;
    }
  } else {
    x1 = 0;
    x2 = z;
    if (y < 0) {
      y2 = 0;
      y1 = -1 * z;
    } else {
      y2 = 0;
      y1 = z;
    }
  }
  printf("%d %d %d %d", x1, y1, x2, y2);
}
