#include <bits/stdc++.h>
using namespace std;
int main() {
  long x, y;
  cin >> x >> y;
  long len = abs(x) + abs(y);
  long zx = x / abs(x), zy = y / abs(y);
  x = len * zx;
  y = 0;
  long x2 = 0, y2 = len * zy;
  if (x > x2) {
    swap(x, x2);
    swap(y, y2);
  }
  cout << x << ' ' << y << ' ' << x2 << ' ' << y2;
  return 0;
}
