#include <bits/stdc++.h>
using namespace std;
const int SS = 5e2 + 123;
const int N = 1e5 + 123;
const int NN = 1e6 + 123;
const int M = 1e7 + 123;
const int MM = 1e8 + 123;
const int inf = 1e9 + 123;
const long long INF = 1e18 + 123;
const long long MAXN = 1e10 + 123;
const long long MOD = 1e9 + 7;
const long long mod = 555557;
const double pi = acos(-1.0);
long long Clarion, Harbour;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> Clarion >> Harbour;
  if (Clarion > 0 && Harbour > 0)
    cout << "0 " << Clarion + Harbour << " " << Clarion + Harbour << " 0";
  if (Clarion > 0 && Harbour < 0)
    cout << "0 " << Harbour - Clarion << " " << Clarion - Harbour << " 0";
  if (Clarion < 0 && Harbour > 0)
    cout << Clarion - Harbour << " 0 0 " << Harbour - Clarion;
  if (Clarion < 0 && Harbour < 0)
    cout << Clarion + Harbour << " 0 0 " << Clarion + Harbour;
}
