#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y;
  cin >> x >> y;
  long long abx = x, aby = y;
  if (x < 0) abx *= (-1);
  if (y < 0) aby *= (-1);
  long long x1 = 0, y1 = 0, x2 = 0, y2 = 0;
  if (x < 0 && y > 0) {
    x1 = (abx + aby) * (-1);
    y2 = abx + aby;
  } else if (x > 0 && y > 0) {
    x2 = abx + aby;
    y1 = abx + aby;
  } else if (x > 0 && y < 0) {
    x2 = abx + aby;
    y1 = (-1) * (abx + aby);
  } else if (x < 0 && y < 0) {
    x1 = (abx + aby) * (-1);
    y2 = (abx + aby) * (-1);
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2;
  return 0;
}
