#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
int main(int argc, char const *argv[]) {
  int x, y;
  cin >> x >> y;
  int x1 = abs(x) + abs(y);
  int y1 = 0;
  int x2 = 0;
  int y2 = abs(x) + abs(y);
  if (x < 0) {
    x1 *= -1;
  }
  if (y < 0) {
    y2 *= -1;
  }
  if (x1 < x2) {
    cout << x1 << " " << y1 << " " << x2 << " " << y2 << "\n";
  } else {
    cout << x2 << " " << y2 << " " << x1 << " " << y1 << "\n";
  }
  return 0;
}
