#include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
  cin >> x >> y;
  if (x > 0 && y > 0)
    cout << "0 " << x + y << " " << x + y << " 0\n";
  else if (x > 0 && y < 0)
    cout << "0 " << -1 * (x + -1 * y) << " " << x + -1 * y << " 0\n";
  else if (x < 0 && y > 0)
    cout << -1 * (-1 * x + y) << " 0 0 " << -1 * x + y << "\n";
  else
    cout << -1 * (-1 * x + -1 * y) << " 0 0 " << -1 * (-1 * x + -1 * y) << "\n";
  return 0;
}
