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