#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int i, j, x, y, x1, y1;
  cin >> i >> j;
  if (i > 0 and j > 0) {
    cout << 0 << " " << i + j << " " << i + j << " " << 0 << endl;
    return 0;
  } else if (i < 0 and j > 0) {
    cout << i - j << " " << 0 << " " << 0 << " " << -1 * i + j << endl;
    return 0;
  } else if (i > 0 and j < 0) {
    cout << 0 << " " << (j - i) << " " << i + (j * -1) << " " << 0 << endl;
    return 0;
  } else {
    cout << i + j << " " << 0 << " " << 0 << " " << i + j << endl;
    return 0;
  }
}
