#include <bits/stdc++.h>
using namespace std;
long long int tc, cnt = 0, number, many, total = 0;
int rmove[4] = {0, 0, -1, 1};
int cmove[4] = {1, -1, 0, 0};
long long int power(long long int x, long long int y, long long int mod) {
  if (y == 0)
    return 1;
  else if (y % 2 == 0)
    return (power(x, y / 2, mod) % mod * power(x, y / 2, mod) % mod) % mod;
  else
    return x * (power(x, y / 2, mod) % mod * power(x, y / 2, mod) % mod) % mod;
}
int sign(int a) {
  if (a < 0) return -1;
  return 1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int x, y;
  cin >> x >> y;
  int temp = abs(x) + abs(y);
  pair<int, int> a = make_pair(temp * sign(x), 0);
  pair<int, int> b = make_pair(0, temp * sign(y));
  if (a.first > b.first) swap(a, b);
  cout << a.first << " " << a.second << " " << b.first << " " << b.second;
  cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << " ms\n";
  return 0;
}
