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