#include <bits/stdc++.h>
using namespace std;
int sgn(int x) {
  if (x > 0) return 1;
  if (x == 0) return 0;
  return -1;
}
int main() {
  int x, y, x1 = 0;
  cin >> x >> y;
  int v = abs(x) + abs(y);
  pair<int, int> a = make_pair(v * sgn(x), 0);
  pair<int, int> b = make_pair(0, v * sgn(y));
  if (a.first > b.first) swap(a, b);
  cout << a.first << " " << a.second << " " << b.first << " " << b.second
       << endl;
  return 0;
}
