#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int k;
  cin >> k;
  if (n >= 0) {
    cout << 0 << " ";
    if (k >= 0) {
      cout << n + k << " ";
    } else
      cout << -abs(n) - abs(k) << " ";
    cout << abs(n) + abs(k) << " ";
    cout << 0;
  } else {
    cout << n - abs(k) << " ";
    cout << 0 << " ";
    cout << 0 << " ";
    if (k >= 0) {
      cout << abs(n) + abs(k) << " ";
    } else
      cout << -abs(n) - abs(k) << " ";
  }
  return 0;
}
