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