#include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
  cin >> x >> y;
  if (x > 0 && y > 0) {
    cout << 0 << " " << x + y << " " << x + y << " 0";
  } else if (x < 0 && y > 0) {
    cout << -(abs(x) + y) << " " << 0 << " " << 0 << " " << (-x) + y;
  } else if (x < 0 && y < 0) {
    cout << -(abs(x) + abs(y)) << " 0 0 " << -(abs(x) + abs(y));
  } else if (x > 0 && y < 0) {
    cout << 0 << " " << -(abs(x) + abs(y)) << " " << x + abs(y) << " " << 0;
  }
}
