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