#include <bits/stdc++.h>
using namespace std;
template <class T1>
void deb(T1 e1) {
  cout << e1 << "\n";
}
template <class T1, class T2>
void deb(T1 e1, T2 e2) {
  cout << e1 << " " << e2 << "\n";
}
template <class T1, class T2, class T3>
void deb(T1 e1, T2 e2, T3 e3) {
  cout << e1 << " " << e2 << " " << e3 << "\n";
}
template <class T1, class T2, class T3, class T4>
void deb(T1 e1, T2 e2, T3 e3, T4 e4) {
  cout << e1 << " " << e2 << " " << e3 << " " << e4 << "\n";
}
template <class T1, class T2, class T3, class T4, class T5>
void deb(T1 e1, T2 e2, T3 e3, T4 e4, T5 e5) {
  cout << e1 << " " << e2 << " " << e3 << " " << e4 << " " << e5 << "\n";
}
template <class T1, class T2, class T3, class T4, class T5, class T6>
void deb(T1 e1, T2 e2, T3 e3, T4 e4, T5 e5, T6 e6) {
  cout << e1 << " " << e2 << " " << e3 << " " << e4 << " " << e5 << " " << e6
       << "\n";
}
int main() {
  long long int x, y;
  long long int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
  cin >> x >> y;
  if (x < 0 and y < 0) {
    x1 = x + y;
    y1 = 0;
    x2 = 0;
    y2 = x + y;
  }
  if (x < 0 and y > 0) {
    x1 = -(abs(x) + y);
    y1 = 0;
    x2 = 0;
    y2 = abs(x) + y;
  }
  if (x > 0 and y < 0) {
    x1 = 0;
    y1 = -(x + abs(y));
    x2 = x + abs(y);
    y2 = 0;
  }
  if (x > 0 and y > 0) {
    x1 = 0;
    y1 = x + y;
    x2 = x + y;
    y2 = 0;
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << "\n";
  return 0;
}
