#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y;
  cin >> x >> y;
  long long a = x, b = y;
  if (x < 0)
    x -= abs(b);
  else
    x += abs(b);
  if (y < 0)
    y -= abs(a);
  else
    y += abs(a);
  vector<long long> v;
  v.push_back(0);
  v.push_back(0);
  v.push_back(x);
  v.push_back(y);
  sort(v.begin(), v.end());
  if (a > 0)
    cout << "0"
         << " " << min(x, y) << " " << max(x, y) << " "
         << "0";
  else if (a < 0)
    cout << min(x, y) << " "
         << "0"
         << " "
         << "0"
         << " " << max(x, y);
}
