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