#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  int X, Y;
  if (x > 0 && y > 0) {
    X = (y) + (x);
    Y = X;
    printf("0 %d %d 0", X, Y);
    return 0;
  } else if (x < 0 && y < 0) {
    X = (y) + (x);
    Y = (y) + (x);
    printf("%d 0 0 %d", X, Y);
    return 0;
  } else if (x < 0 && y > 0) {
    X = -(y) + (x);
    Y = -(x) + (y);
    printf("%d 0 0 %d", X, Y);
    return 0;
  } else if (x > 0 && y < 0) {
    X = -(y) + (x);
    Y = -(x) + (y);
    printf("0 %d %d 0", Y, X);
    return 0;
  }
  return 0;
}
