#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int x, y;
  cin >> x >> y;
  if (x > 0 && y > 0)
    cout << "0 " << x + y << " " << x + y << " 0\n";
  else if (x < 0 && y > 0)
    cout << x - y << " 0 0 " << y - x << "\n";
  else if (x < 0 && y < 0)
    cout << x + y << " 0 0 " << x + y << "\n";
  else
    cout << "0 " << y - x << " " << x - y << " 0\n";
  return 0;
}
