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