#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a > 0 && b > 0)
    cout << 0 << " " << a + b << " " << a + b << " " << 0;
  else if (a > 0 && b < 0)
    cout << 0 << " " << b - a << " " << a - b << " " << 0;
  else if (b > 0 && a < 0)
    cout << a - b << " " << 0 << " " << 0 << " " << b - a;
  else
    cout << a + b << " " << 0 << " " << 0 << " " << a + b;
  return 0;
}
