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