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