#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  int x, y;
  cin >> x >> y;
  int ax, ay, cx, cy;
  if (x > 0)
    cx = x + (int)abs(y);
  else
    cx = x - (int)abs(y);
  if (y > 0)
    ay = abs(cx);
  else
    ay = -abs(cx);
  cy = ax = 0;
  if (ax < cx)
    cout << ax << " " << ay << " " << cx << " " << cy << endl;
  else
    cout << cx << " " << cy << " " << ax << " " << ay << endl;
  return 0;
}
