#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b;
  cin >> a >> b;
  long long ans = abs(a) + abs(b);
  long long x1 = ans * a / abs(a);
  long long x2 = 0;
  long long y1 = 0;
  long long y2 = ans * b / abs(b);
  if (x1 > 0) {
    swap(x1, x2);
    swap(y1, y2);
  }
  cout << x1 << " " << y1 << " " << x2 << " " << y2 << endl;
}
