#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y;
  while (scanf("%lld%lld", &x, &y) != EOF) {
    long long x1 = 0, x2 = 0, y1 = 0, y2 = 0;
    long long b1, b2, tem;
    if (x < 0)
      b1 = -1;
    else
      b1 = 1;
    if (y < 0)
      b2 = -1;
    else
      b2 = 1;
    tem = abs(x) + abs(y);
    x1 = tem * b1, y1 = 0, x2 = 0, y2 = tem * b2;
    if (x1 > x2) swap(x1, x2), swap(y1, y2);
    printf("%lld %lld %lld %lld\n", x1, y1, x2, y2);
  }
  return 0;
}
