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