#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const double EPS = 1e-9, INF = 1e12;
int a, b;
int main() {
  cin >> a >> b;
  if (a > 0 && b > 0) {
    cout << "0 " << a + b << " " << a + b << " 0" << endl;
  } else if (a > 0) {
    cout << "0 " << -a + b << " " << a - b << " 0" << endl;
  } else if (b > 0) {
    cout << a - b << " 0 0 " << -a + b << endl;
  } else {
    cout << a + b << " 0 0 " << a + b << endl;
  }
  return 0;
}
