Vasily the bear has a favorite rectangle, it has one vertex at point (0, 0), and the opposite vertex at point (x, y). Of course, the sides of Vasya's favorite rectangle are parallel to the coordinate axes. 

Vasya also loves triangles, if the triangles have one vertex at point B = (0, 0). That's why today he asks you to find two points A = (x_1, y_1) and C = (x_2, y_2), such that the following conditions hold:  the coordinates of points: x_1, x_2, y_1, y_2 are integers. Besides, the following inequation holds: x_1 < x_2;  the triangle formed by point A, B and C is rectangular and isosceles ($\angle A B C$ is right);  all points of the favorite rectangle are located inside or on the border of triangle ABC;  the area of triangle ABC is as small as possible. 

Help the bear, find the required points. It is not so hard to proof that these points are unique.


-----Input-----

The first line contains two integers x, y ( - 10^9 ≤ x, y ≤ 10^9, x ≠ 0, y ≠ 0).


-----Output-----

Print in the single line four integers x_1, y_1, x_2, y_2 — the coordinates of the required points.


-----Examples-----
Input
10 5

Output
0 15 15 0

Input
-10 5

Output
-15 0 0 15



-----Note-----

[Image]

Figure to the first sample

Difficulty: EASY
Tags: Mathematics

Implementation

Starter code:

Solutions:
(x, y) = map(int, input().split())
sign_x = -1 if x < 0 else 1
sign_y = -1 if y < 0 else 1
res = abs(x) + abs(y)
if x < 0:
	print(sign_x * res, 0, 0, sign_y * res)
else:
	print(0, sign_y * res, sign_x * res, 0)


(x, y) = map(int, input().split())
x_2 = abs(x)
y_2 = abs(x)
if x < 0:
	if y < 0:
		print(f'{x + y} 0 0 {x + y}')
	else:
		print(f'{x - y} 0 0 {x_2 + y}')
elif y < 0:
	print(f'0 {y - x} {x - y} 0')
else:
	print(f'0 {x + y} {x + y} 0')


(a, b) = map(int, input().split())
(x1, y2) = (0, 0)
x1 = abs(a) + abs(b)
y2 = x1
if a < 0:
	x1 = -1 * x1
if b < 0:
	y2 = -1 * y2
if x1 > 0:
	print(0, y2, x1, 0)
else:
	print(x1, 0, 0, y2)


(x, y) = list(map(int, input().split()))
m = abs(x) + abs(y)
if x >= 0:
	if y >= 0:
		print(0, m, m, 0)
	else:
		print(0, -m, m, 0)
elif y >= 0:
	print(-m, 0, 0, m)
else:
	print(-m, 0, 0, -m)


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	print(0, y + x, y + x, 0)
elif x < 0 and y > 0:
	print(x - y, 0, 0, y - x)
elif x > 0 and y < 0:
	print(0, y - x, x - y, 0)
elif x < 0 and y < 0:
	print(x + y, 0, 0, x + y)


(x, y) = map(int, input().split())
t = abs(x) + abs(y)
if x > 0 and y > 0:
	print(0, t, t, 0)
elif x < 0 and y > 0:
	print(-1 * t, 0, 0, t)
elif x > 0 and y < 0:
	print(0, -1 * t, t, 0)
else:
	print(-1 * t, 0, 0, -1 * t)


(x, y) = list(map(int, input().split()))
x1 = 0
y2 = 0
if x > 0:
	x2 = abs(x) + abs(y)
	if y > 0:
		y1 = x2
	else:
		y1 = -x2
else:
	x2 = -(abs(x) + abs(y))
	if y > 0:
		y1 = -x2
	else:
		y1 = x2
if x1 < x2:
	print(x1, y1, x2, y2)
else:
	print(x2, y2, x1, y1)


import sys

class MyReader:

	def __init__(self):
		filename = 'file.in'
		if self.isLocal():
			self.file = open(filename)
		self.str = ['']
		self.ind = 1

	def isLocal(self):
		return len(sys.argv) > 1 and sys.argv[1] == 'SCHULLZ'

	def nextString(self):
		if self.isLocal():
			return self.file.read()
		else:
			return input()

	def nextInt(self):
		return int(self.nextToken())

	def nextToken(self):
		if self.ind >= len(self.str):
			self.ind = 0
			self.str = self.nextString().split()
		self.ind += 1
		return self.str[self.ind - 1]

def Solve():
	x = -1
	try:
		x = rdr.nextInt()
	except Exception:
		return False
	y = rdr.nextInt()
	mx = 1
	my = 1
	if x < 0:
		x = -x
		mx = -1
	if y < 0:
		y = -y
		my = -1
	x1 = 0
	y1 = x + y
	x2 = x + y
	y2 = 0
	if -1 == mx:
		x1 = -x1
		x2 = -x2
	if -1 == my:
		y1 = -y1
		y2 = -y2
	if x1 > x2:
		(x1, x2) = (x2, x1)
		(y1, y2) = (y2, y1)
	print(x1, y1, x2, y2)
	return True
rdr = MyReader()
if not rdr.isLocal():
	Solve()
else:
	while Solve():
		fgh = 1


(a, b) = list(map(int, input().split()))
t = abs(a) + abs(b)
if a < 0 and b > 0:
	print(-t, 0, 0, t)
elif a > 0 and b < 0:
	print(0, -t, t, 0)
elif a > 0 and b > 0:
	print(0, t, t, 0)
else:
	print(-t, 0, 0, -t)


def solution():
	(x, y) = map(int, input().split())
	k = abs(x) + abs(y)
	if x > 0 and y > 0:
		print(*[0, k, k, 0])
	elif x > 0 and y < 0:
		print(*[0, -k, k, 0])
	elif x < 0 and y > 0:
		print(*[-k, 0, 0, k])
	else:
		print(*[-k, 0, 0, -k])
	return
solution()


(x, y) = [int(x) for x in input().split()]
newx = x * (abs(x) + abs(y)) / abs(x)
newy = y * (abs(x) + abs(y)) / abs(y)
if newx <= 0:
	print('{} 0 0 {}'.format(int(newx), int(newy)))
else:
	print('0 {} {} 0'.format(int(newy), int(newx)))


(x, y) = map(int, input().split())
sum1 = abs(x) + abs(y)
if y > 0:
	if x < 0:
		print(-1 * sum1, 0, 0, sum1)
	else:
		print(0, sum1, sum1, 0)
elif x < 0:
	print(-1 * sum1, 0, 0, -1 * sum1)
else:
	print(0, -1 * sum1, sum1, 0)


(x, y) = map(int, input().split())
x1 = abs(x)
y1 = abs(y)
if x >= 0 and y >= 0:
	print(0, ' ', x1 + y1, ' ', x1 + y1, ' ', 0, sep='')
elif x < 0 and y > 0:
	print('-', x1 + y1, ' ', 0, ' ', 0, ' ', x1 + y1, sep='')
elif x < 0 and y < 0:
	print('-', x1 + y1, ' ', 0, ' ', 0, ' -', x1 + y1, sep='')
elif x > 0 and y < 0:
	print(0, ' -', x1 + y1, ' ', x1 + y1, ' ', 0, sep='')


(x, y) = [int(str) for str in input().split()]
l = abs(x) + abs(y)
sign = lambda x: (1, -1)[x < 0]
points = [(l * sign(x), 0), (0, l * sign(y))]
points = sorted(points, key=lambda point: point[0])
pprint = points[0] + points[1]
print(' '.join([str(i) for i in pprint]))


(x, y) = map(int, input().split())
s = abs(x) + abs(y)
if x > 0 and y > 0:
	print(0, s, s, 0)
if x < 0 and y > 0:
	print(-s, 0, 0, s)
if x < 0 and y < 0:
	print(-s, 0, 0, -s)
if x > 0 and y < 0:
	print(0, -s, s, 0)


sign = lambda x: abs(x) // x
(x, y) = map(int, input().split())
r = abs(x) + abs(y)
if x > 0:
	print(0, r * sign(y), r, 0)
else:
	print(-r, 0, 0, r * sign(y))


from sys import stdin, stdout
(x, y) = map(int, stdin.readline().split())
if x > 0 and y > 0:
	print(0, x + y, x + y, 0)
elif x > 0 and y < 0:
	print(0, 0 - (x + abs(y)), x + abs(y), 0)
elif x < 0 and y > 0:
	print(0 - (abs(x) + y), 0, 0, abs(x) + y)
else:
	print(0 - (abs(x) + abs(y)), 0, 0, 0 - (abs(x) + abs(y)))


(x, y) = map(int, input().split())
if x >= 0:
	if y >= 0:
		print(0, ' ', x + y, ' ', x + y, ' ', 0)
	else:
		print(0, ' ', y - x, ' ', x - y, ' ', 0)
elif y >= 0:
	print(x - y, ' ', 0, ' ', 0, ' ', y - x)
else:
	print(x + y, ' ', 0, ' ', 0, ' ', x + y)


import time
import math
from sys import stdin, stdout

def I():
	return int(stdin.readline())

def In():
	return map(int, stdin.readline().split())

def L():
	return list(map(int, stdin.readline().split()))

def Si():
	return sorted(list(map(int, stdin.readline().split())))

def Si():
	return sorted(list(map(int, stdin.readline().split())), reverse=True)

def P(x):
	return stdout.write(str(x) + '\n')

def Pi(x, y):
	return stdout.write(str(x) + ' ' + str(y))

def solve():
	(n, m) = In()
	val = abs(n) + abs(m)
	(x, y) = (str(val * (n // abs(n))), str(val * (m // abs(m))))
	if int(x) > 0:
		P('0 ' + y + ' ' + x + ' 0')
	else:
		P(x + ' 0 0 ' + y)
solve()


(x, y) = map(int, input().split())
z = abs(x) + abs(y)
if x > 0 and y > 0:
	print('0 ', z, ' ', z, ' 0')
elif x < 0 and y > 0:
	print(-z, ' 0 0 ', z)
elif x < 0 and y < 0:
	print(-z, ' 0 0 ', -z)
else:
	print('0 ', -z, ' ', z, ' 0')


import sys, threading, os.path
import collections, heapq, math, bisect
import string
from platform import python_version
import itertools
sys.setrecursionlimit(10 ** 6)
threading.stack_size(2 ** 27)

def main():
	if os.path.exists('input.txt'):
		input = open('input.txt', 'r')
	else:
		input = sys.stdin
	(x, y) = list(map(int, input.readline().split()))
	res = []
	if x > 0 and y > 0:
		res = [0, x + y, x + y, 0]
	elif x < 0 and y < 0:
		res = [-(abs(x) + abs(y)), 0, 0, -(abs(x) + abs(y))]
	elif x > 0 and y < 0:
		res = [0, -(abs(x) + abs(y)), abs(x) + abs(y), 0]
	elif x < 0 and y > 0:
		res = [-(abs(x) + abs(y)), 0, 0, abs(x) + abs(y)]
	output = ' '.join(map(str, res))
	if os.path.exists('output.txt'):
		open('output.txt', 'w').writelines(str(output))
	else:
		sys.stdout.write(str(output))
main()


(a, b) = map(int, input().split())
m = abs(a) + abs(b)
if b < 0:
	if a >= 0:
		print('{} {} {} {}'.format(0, -m, m, 0))
	if a < 0:
		print('{} {} {} {}'.format(-m, 0, 0, -m))
if b >= 0:
	if a >= 0:
		print('{} {} {} {}'.format(0, m, m, 0))
	if a < 0:
		print('{} {} {} {}'.format(-m, 0, 0, m))


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	a = x + y
	print('{} {} {} {}'.format(0, a, a, 0))
elif x < 0 and y > 0:
	a = y - x
	print('{} {} {} {}'.format(-a, 0, 0, a))
elif x > 0 and y < 0:
	a = x - y
	print('{} {} {} {}'.format(0, -a, a, 0))
else:
	a = -x - y
	print('{} {} {} {}'.format(-a, 0, 0, -a))


string = input()
numbers = string.split()
(a, b) = (int(numbers[0]), int(numbers[1]))
condition1 = abs(a) == a
condition2 = abs(b) == b
global x1, x2, y1, y2

def xy(x, y):
	global x1, x2, y1, y2
	n = abs(a) + abs(b)
	x1 = 0
	x2 = n * x
	y1 = n * y
	y2 = 0
	if x1 > x2:
		(x1, x2) = (x2, x1)
		(y1, y2) = (y2, y1)

def check(x):
	if condition2:
		xy(x, 1)
	else:
		xy(x, -1)
if condition1:
	check(1)
else:
	check(-1)
print(x1, y1, x2, y2)


(a, b) = list(map(int, input().split()))
d = {1: -1, 0: 1}
j = abs(a) + abs(b)
(f, k, h, g) = (d[a + b != j], d[a < 0 and b < 0], a >= 0, a < 0)
for i in [g * f, h * f, h * k, g * k]:
	print(i * j, end=' ')


[x, y] = [int(i) for i in input().split()]
if x > 0 and y > 0:
	print(0, x + y, x + y, 0)
elif x < 0 and y > 0:
	v = abs(x) + y
	print(-v, 0, 0, v)
elif x > 0 and y < 0:
	v = x + abs(y)
	print(0, -v, v, 0)
else:
	print(x + y, 0, 0, x + y)


(x, y) = map(int, input().split())
dx = -1 if x < 0 else 1
dy = -1 if y < 0 else 1
v = abs(x) + abs(y)
x1 = min(0, v * dx)
y1 = v * dy if x1 == 0 else 0
x2 = max(0, v * dx)
y2 = v * dy if x2 == 0 else 0
print(x1, y1, x2, y2)


from math import floor
s = input()
sl = s.split(' ')
x = int(sl[0])
y = int(sl[1])
dis = abs(x) + abs(y)
if x > 0:
	if y > 0:
		print('0 {} {} 0'.format(dis, dis))
	else:
		print('0 {} {} 0'.format(-dis, dis))
elif y > 0:
	print('{} 0 0 {}'.format(-dis, dis))
else:
	print('{} 0 0 {}'.format(-dis, -dis))


(x, y) = map(int, input().split())
if x < 0 and y > 0:
	x1 = x - y
	x2 = 0
	y1 = 0
	y2 = -x1
	print(x1, y1, x2, y2)
elif x > 0 and y > 0:
	x1 = 0
	x2 = x + y
	y1 = x + y
	y2 = 0
	print(x1, y1, x2, y2)
elif x < 0 and y < 0:
	x1 = x + y
	x2 = 0
	y1 = 0
	y2 = x1
	print(x1, y1, x2, y2)
elif x > 0 and y < 0:
	x1 = 0
	x2 = x - y
	y1 = -x2
	y2 = 0
	print(x1, y1, x2, y2)


3
(x, y) = tuple(map(int, input().split()))
if x > 0 and y > 0:
	print(0, x + y, x + y, 0)
elif x > 0 and y < 0:
	print(0, -x + y, x - y, 0)
elif x < 0 and y > 0:
	print(x - y, 0, 0, -x + y)
else:
	print(x + y, 0, 0, x + y)


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	x1 = 0
	y1 = x + y
	x2 = y1
	y2 = 0
elif x < 0 and y > 0:
	(x, y) = (abs(x), abs(y))
	x1 = -1 * (x + y)
	y1 = 0
	x2 = 0
	y2 = x + y
elif x < 0 and y < 0:
	(x, y) = (abs(x), abs(y))
	x1 = -1 * (x + y)
	y1 = 0
	x2 = 0
	y2 = x1
else:
	(x, y) = (abs(x), abs(y))
	x1 = 0
	y1 = -1 * (x + y)
	x2 = -1 * y1
	y2 = 0
ans = str(x1) + ' ' + str(y1) + ' ' + str(x2) + ' ' + str(y2)
print(ans)


(n, m) = map(int, input().split())
s = abs(n) + abs(m)
ans = []
if n < 0 and m > 0:
	print(-s, 0, 0, s)
elif n < 0 and m < 0:
	print(-s, 0, 0, -s)
elif n > 0 and m < 0:
	print(0, -s, s, 0)
else:
	print(0, s, s, 0)


p = input().split()
x = int(p[0])
y = int(p[1])
if x > 0 and y > 0:
	a = 0
	b = x + y
	c = x + y
	d = 0
elif x < 0 and y > 0:
	a = x - y
	b = 0
	c = 0
	d = y - x
elif x < 0 and y < 0:
	a = x + y
	b = 0
	c = 0
	d = x + y
elif x > 0 and y < 0:
	a = 0
	b = y - x
	c = x - y
	d = 0
print(a, b, c, d)


(x, y) = map(int, input().split())
a = abs(x) + abs(y)
v = [-a, a][y > 0]
print(*((-a, 0, 0, v) if x < 0 else (0, v, a, 0)))


(a, b) = map(int, input().split())
res = abs(a) + abs(b)
(x, y) = (a // abs(a) * res, b // abs(b) * res)
if x < 0:
	print(x, 0, 0, y)
else:
	print(0, y, x, 0)


def gcd(a, b):
	(a, b) = (min(a, b), max(a, b))
	while a:
		(a, b) = (b % a, a)
	return a
I = lambda : map(int, input().split())
(x, y) = I()
t = abs(x) + abs(y)
if x > 0 and y > 0:
	print('0', t, t, '0')
elif x < 0 and y > 0:
	print(-t, '0', '0', t)
elif x > 0 and y < 0:
	print('0', -t, t, '0')
else:
	print(-t, '0', '0', -t)


(x, y) = map(int, input().split())
aa = abs(x) + abs(y)
if x < 0:
	if y < 0:
		print(-aa, 0, 0, -aa)
	else:
		print(-aa, 0, 0, aa)
elif y < 0:
	print(0, -aa, aa, 0)
else:
	print(0, aa, aa, 0)


(x, y) = [int(num) for num in input().split(' ')]
yCoord = (abs(x) + abs(y)) * int(y / abs(y))
coord1 = (0, yCoord)
xCoord = (abs(x) + abs(y)) * int(x / abs(x))
coord2 = (xCoord, 0)
if coord1[0] < coord2[0]:
	print(coord1[0], end=' ')
	print(coord1[1], end=' ')
	print(coord2[0], end=' ')
	print(coord2[1])
else:
	print(coord2[0], end=' ')
	print(coord2[1], end=' ')
	print(coord1[0], end=' ')
	print(coord1[1])


(x, y) = input().split(' ')
x = int(x)
y = int(y)
k = 1 if -(y // x) > 0 else -1
b = y - k * x
tr_x = -b // k
tr_y = b
if tr_x < 0:
	print(tr_x, 0, 0, tr_y)
else:
	print(0, tr_y, tr_x, 0)


(x, y) = map(int, input().split())
a = abs(x) + abs(y)
if x >= 0 and y >= 0:
	print(str(0) + ' ' + str(a) + ' ' + str(a) + ' ' + str(0))
elif x < 0 and y > 0:
	print('-' + str(a) + ' ' + str(0) + ' ' + str(0) + ' ' + str(a))
elif x < 0 and y < 0:
	print('-' + str(a) + ' ' + str(0) + ' ' + str(0) + ' -' + str(a))
elif x > 0 and y < 0:
	print(str(0) + ' -' + str(a) + ' ' + str(a) + ' ' + str(0))


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	c = x + y
	x1 = 0
	y1 = c
	x2 = c
	y2 = 0
elif x < 0 and y > 0:
	c = y - x
	x1 = -c
	y1 = 0
	x2 = 0
	y2 = c
elif x < 0 and y < 0:
	c = -y - x
	x1 = -c
	y1 = 0
	x2 = 0
	y2 = -c
else:
	c = x - y
	x1 = 0
	y1 = -c
	x2 = c
	y2 = 0
print(f'{x1} {y1} {x2} {y2}')


(a, b) = map(int, input().split())
if a >= 0 and b >= 0:
	print(0, a + b, a + b, 0)
if a >= 0 and b <= 0:
	print(0, -(a - b), a - b, 0)
if a <= 0 and b >= 0:
	print(a - b, 0, 0, -a + b)
if a <= 0 and b <= 0:
	print(a + b, 0, 0, a + b)


def vector(a, b, c, d):
	return [c - a, d - b]

def cross_product(a, b):
	return a[0] * b[1] - a[1] * b[0]

def dot_product(a, b):
	return a[0] * b[0] + a[1] * b[1]

def bin_search(lo, hi):
	while hi - lo > 1:
		mid = (lo + hi) // 2
		if cross_product(vector(0, mid, mid, 0), vector(0, mid, x1, y1)) < EPS:
			hi = mid
		else:
			lo = mid
	return hi
(x, y) = list(map(int, input().split()))
EPS = 1e-09
(x1, y1) = (abs(x), abs(y))
res = int(bin_search(max(x1, y1), 1e+18))
if x < 0:
	if y < 0:
		print(-res, 0, 0, -res)
	else:
		print(-res, 0, 0, res)
elif y > 0:
	print(0, res, res, 0)
else:
	print(0, -res, res, 0)


z = input().split(' ')
x = int(z[0])
y = int(z[1])
if x > 0 and y > 0:
	print(0, x + y, y + x, 0)
elif x > 0 and y < 0:
	print(0, y - x, x - y, 0)
elif x < 0 and y > 0:
	print(x - y, 0, 0, y - x)
else:
	print(x + y, 0, 0, x + y)


(a, b) = list(map(int, input().split()))
if a * b > 0:
	if a > 0:
		c = [0, a + b, a + b, 0]
	else:
		c = [a + b, 0, 0, a + b]
elif a > 0:
	c = [0, -a + b, a - b, 0]
else:
	c = [a - b, 0, 0, -a + b]
for i in c:
	print(i, end=' ')


import math
from collections import defaultdict, Counter, deque
INF = float('inf')

def gcd(a, b):
	while b:
		(a, b) = (b, a % b)
	return a

def primeFactor(n):
	if n % 2 == 0:
		return 2
	i = 3
	while i ** 2 <= n:
		if n % i == 0:
			return i
		i += 1
	return n

def main():
	(x, y) = map(int, input().split())
	ax = ay = abs(x) + abs(y)
	if x < 0:
		ax *= -1
	if y < 0:
		ay *= -1
	ans = sorted([[ax, 0], [0, ay]])
	for (x, y) in ans:
		print(x, y, end=' ')
	print()
t = 1
for _ in range(t):
	main()


(x, y) = [int(i) for i in input().split()]
if x < 0 and y < 0 or (x > 0 and y > 0):
	c = y + x
	x2 = c
	x1 = 0
	y2 = 0
	y1 = c
	if x1 > x2:
		print(x2, y2, x1, y1)
	else:
		print(x1, y1, x2, y2)
else:
	c = y - x
	y2 = c
	x2 = 0
	x1 = -c
	y1 = 0
	if x1 > x2:
		print(x2, y2, x1, y1)
	else:
		print(x1, y1, x2, y2)


(a, b) = map(int, input().split())
x = abs(a) + abs(b)
if a < 0 and b < 0:
	print(-x, 0, 0, -x)
elif a < 0 and b > 0:
	print(-x, 0, 0, x)
elif a > 0 and b < 0:
	print(0, -x, x, 0)
elif a > 0 and b > 0:
	print(0, x, x, 0)


(x, y) = map(int, input().split())
a = abs(x) + abs(y)
b = a
if x > 0 and y > 0:
	print(0, a, b, 0)
if x < 0 and y < 0:
	print(-1 * b, 0, 0, -1 * a)
if x < 0 and y > 0:
	print(-1 * a, 0, 0, b)
if x > 0 and y < 0:
	print(0, -1 * b, a, 0)


(x, y) = [int(x) for x in input().split()]
a = abs(x)
b = abs(y)
a = a + b
b = a
if x < 0 and y > 0:
	a = -a
	b = b
elif x > 0 and y < 0:
	b = -b
	a = a
elif x < 0 and y < 0:
	a = -a
	b = -b
if a < 0:
	print(a, 0, 0, b)
else:
	print(0, b, a, 0)


(x, y) = map(int, input().split())
l = abs(x) + abs(y)
if y > 0:
	y1 = l
else:
	y1 = -l
if x < 0:
	print(-l, 0, 0, y1)
else:
	print(0, y1, l, 0)


line = input()
(x, y) = line.split()
x = int(x)
y = int(y)
if x * y > 0:
	b = x + y
	if b > 0:
		print(0, b, b, 0)
	else:
		print(b, 0, 0, b)
if x * y < 0:
	b = y - x
	if b > 0:
		print(-b, 0, 0, b)
	else:
		print(0, b, -b, 0)


def Abs(a):
	if a < 0:
		return -a
	return a

def main():
	(x, y) = [int(a) for a in input().split(' ')]
	val = Abs(x) + Abs(y)
	if x < 0 and y > 0:
		print(-val, '0', '0', val)
	if x < 0 and y < 0:
		print(-val, '0', '0', -val)
	if x > 0 and y > 0:
		print('0', val, val, '0')
	if x > 0 and y < 0:
		print('0', -val, val, '0')
main()


(x, y) = [int(i) for i in input().split()]
sign = lambda n: n // abs(n)
x1 = (abs(x) + abs(y)) * sign(x)
y1 = (abs(x) + abs(y)) * sign(y)
if x1 < 0:
	print(x1, 0, 0, y1)
else:
	print(0, y1, x1, 0)


(x, y) = list(map(int, input().split()))
p = abs(x) + abs(y)
t = [int(p * x / abs(x)), 0]
w = [0, int(p * y / abs(y))]
print(*min(t, w), *max(t, w))


from math import copysign as s, fabs as f
a = list(map(int, input().split()))
b = int(f(a[0]) + f(a[1]))
if a[0] < 0:
	print(-b, 0, 0, int(s(b, a[1])))
else:
	print(0, int(s(b, a[1])), b, 0)


(x, y) = [int(x) for x in input().split()]
if x * y > 0:
	if x < 0:
		print(x + y, 0, 0, x + y)
	else:
		print(0, x + y, x + y, 0)
elif x < 0:
	print(x - y, 0, 0, y - x)
else:
	print(0, y - x, x - y, 0)


(x, y) = [int(x) for x in input().split()]
if y > 0 and x > 0:
	x1 = 0
	y1 = x + y
	x2 = y1
	y2 = 0
elif y > 0 and x < 0:
	x1 = x - y
	y1 = 0
	x2 = 0
	y2 = abs(x1)
elif x < 0 and y < 0:
	x1 = x + y
	y1 = 0
	x2 = 0
	y2 = x1
else:
	x1 = x - y
	y1 = 0
	x2 = 0
	y2 = -x1
if x1 < x2:
	print(str(x1) + ' ' + str(y1) + ' ' + str(x2) + ' ' + str(y2))
else:
	print(str(x2) + ' ' + str(y2) + ' ' + str(x1) + ' ' + str(y1))


(x, y) = [int(x) for x in input().split()]
d = abs(x) + abs(y)
ans = []
if x < 0:
	ans += [-d, 0]
	if y < 0:
		ans += [0, -d]
	else:
		ans += [0, d]
else:
	ans += [0]
	if y < 0:
		ans += [-d]
	else:
		ans += [d]
	ans += [d, 0]
print(' '.join((str(x) for x in ans)))


(a, b) = map(int, input().split())
temp = abs(a) + abs(b)
if a > 0 and b > 0:
	print(0, temp, temp, 0)
elif a > 0 and b < 0:
	print(0, -1 * temp, temp, 0)
elif a < 0 and b > 0:
	print(-1 * temp, 0, 0, temp)
else:
	print(-1 * temp, 0, 0, -1 * temp)


(a, b) = map(int, input().split())
if a > 0 and b > 0:
	print('0', a + b, a + b, '0')
elif a > 0 and b < 0:
	print('0', -a + b, a - b, '0')
elif a < 0 and b < 0:
	print(a + b, '0', '0', a + b)
else:
	print(a - b, '0', '0', -a + b)


(x, y) = map(int, input().split())
xy = abs(x) + abs(y)
x1 = xy * (-1 if x < 0 else 1)
y1 = xy * (-1 if y < 0 else 1)
if x > 0:
	print(0, y1, x1, 0)
else:
	print(x1, 0, 0, y1)


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	c = y + x
	print('0 ' + str(c), end=' ')
	print(str(c) + ' 0')
elif x < 0 and y < 0:
	c = y + x
	print(str(c) + ' 0', end=' ')
	print('0 ' + str(c))
elif y > x:
	c = y - x
	print(str(-1 * c) + ' 0', end=' ')
	print('0 ' + str(c))
else:
	c = y - x
	print('0 ' + str(c), end=' ')
	print(str(-1 * c) + ' 0')


def main():
	(x, y) = [int(x) for x in input().split()]
	quarter = 0
	if x > 0 and y > 0:
		quarter = 1
	elif x < 0 and y > 0:
		quarter = 2
	elif x < 0 and y < 0:
		quarter = 3
	else:
		quarter = 4
	x = abs(x)
	y = abs(y)
	x1 = 0
	y1 = x + y
	x2 = x + y
	y2 = 0
	if quarter == 2:
		x2 = -x2
	elif quarter == 3:
		x2 = -x2
		y1 = -y1
	elif quarter == 4:
		y1 = -y1
	if x1 >= x2:
		(x1, x2) = (x2, x1)
		(y1, y2) = (y2, y1)
	print(x1, y1, x2, y2)
main()


import sys
from functools import reduce
from collections import Counter
import time
import datetime
from math import sqrt, gcd

def ip():
	return int(sys.stdin.readline())

def sip():
	return sys.stdin.readline()

def mip():
	return map(int, sys.stdin.readline().split())

def mips():
	return map(str, sys.stdin.readline().split())

def lip():
	return list(map(int, sys.stdin.readline().split()))

def matip(n, m):
	lst = []
	for i in range(n):
		arr = lip()
		lst.append(arr)
	return lst

def factors(n):
	return list(set(reduce(list.__add__, ([i, n // i] for i in range(1, int(n ** 0.5) + 1) if n % i == 0))))

def minJumps(arr, n):
	jumps = [0 for i in range(n)]
	if n == 0 or arr[0] == 0:
		return float('inf')
	jumps[0] = 0
	for i in range(1, n):
		jumps[i] = float('inf')
		for j in range(i):
			if i <= j + arr[j] and jumps[j] != float('inf'):
				jumps[i] = min(jumps[i], jumps[j] + 1)
				break
	return jumps[n - 1]

def dic(arr):
	return Counter(arr)

def check_prime(n):
	if n < 2:
		return False
	for i in range(2, int(n ** 0.5) + 1, 2):
		if n % i == 0:
			return False
	return True
(x, y) = mip()
if x > 0 and y > 0:
	x = abs(x)
	y = abs(y)
	print(0, x + y, x + y, 0)
elif x < 0 and y > 0:
	x = abs(x)
	y = abs(y)
	print(-(x + y), 0, 0, x + y)
elif x < 0 and y < 0:
	x = abs(x)
	y = abs(y)
	print(-(x + y), 0, 0, -(x + y))
else:
	x = abs(x)
	y = abs(y)
	print(0, -(x + y), x + y, 0)


import sys

def input():
	return sys.stdin.readline().strip()

def iinput():
	return int(input())

def rinput():
	return map(int, sys.stdin.readline().strip().split())

def get_list():
	return list(map(int, sys.stdin.readline().strip().split()))
(a, b) = rinput()
if a > 0 and b > 0:
	add = a + b
	print(0, add, add, 0)
elif a > 0 and b < 0:
	add = a - b
	print(0, -add, add, 0)
elif a < 0 and b < 0:
	add = -a - b
	print(-add, 0, 0, -add)
elif a < 0 and b > 0:
	add = -a + b
	print(-add, 0, 0, add)


integer = int
string = str
length = len

def main():
	(x, y) = list(map(integer, input().split()))
	point = abs(x) + abs(y)
	if x > 0 and y > 0:
		print(0, point, point, 0)
	elif x < 0 and y > 0:
		print(-1 * point, 0, 0, point)
	elif x < 0 and y < 0:
		print(-1 * point, 0, 0, -1 * point)
	else:
		print(0, -1 * point, point, 0)
main()


X = list(map(int, input().split()))
Answer = [[0, X[1] + (abs(X[0]) if X[1] > 0 else abs(X[0]) * -1)], [X[0] + (abs(X[1]) if X[0] > 0 else abs(X[1]) * -1), 0]]
Answer = sorted(Answer)
print(*Answer[0], end=' ')
print(*Answer[1], end=' ')


import sys, os.path
if os.path.exists('in_py.txt'):
	sys.stdin = open('in_py.txt', 'r')
	sys.stdout = open('out_py.txt', 'w')

def get_ints():
	return map(int, sys.stdin.readline().strip().split())
n = 1
(x, y) = get_ints()
x2 = y2 = x3 = y3 = 0
while n > 0:
	n = n - 1
	if x > 0 and y > 0:
		x2 = 0
		y2 = abs(x) + abs(y)
		x3 = abs(x) + abs(y)
		y3 = 0
	elif x > 0 and y < 0:
		x2 = 0
		y2 = -(abs(x) + abs(y))
		y3 = 0
		x3 = abs(x) + abs(y)
	elif x < 0 and y > 0:
		x2 = -(abs(x) + abs(y))
		y2 = 0
		x3 = 0
		y3 = abs(x) + abs(y)
	else:
		x3 = 0
		y3 = -(abs(x) + abs(y))
		x2 = -(abs(x) + abs(y))
		y2 = 0
print(x2, y2, x3, y3)


(a, b) = list(map(int, input().split()))
(f, k) = (1, 1)
j = abs(a) + abs(b)
if a + b != j:
	f = -1
if a < 0 and b < 0:
	k = -1
if a > 0:
	c = [0, f * j, j, 0]
else:
	c = [f * j, 0, 0, k * j]
for i in c:
	print(i, end=' ')


(x, y) = (int(x) for x in input().split())
i = abs(x) + abs(y)
yi = i if y > 0 else -i
if x < 0:
	print(-i, 0, 0, yi)
else:
	print(0, yi, i, 0)


import math

def main():
	(x, y) = map(int, input().split())
	if x > 0 and y > 0:
		c = [(x + y, 0), (0, x + y)]
		print(*min(c), *max(c))
	if x > 0 and y < 0:
		c = [(x - y, 0), (0, -(x - y))]
		print(*min(c), *max(c))
	if x < 0 and y > 0:
		c = [(-(-x + y), 0), (0, -x + y)]
		print(*min(c), *max(c))
	if x < 0 and y < 0:
		c = [(-(-x - y), 0), (0, -(-x - y))]
		print(*min(c), *max(c))
main()


arr = input().split()
a = int(arr[0])
b = int(arr[1])
l = abs(a) + abs(b)
if a >= 0:
	x = l
else:
	x = -1 * l
if b >= 0:
	y = l
else:
	y = -1 * l
if x > 0:
	print('0 ' + str(y) + ' ' + str(x) + ' 0')
else:
	print(str(x) + ' 0 0 ' + str(y))


from sys import stdin, stdout
import math
from itertools import permutations, combinations
from collections import defaultdict
from bisect import bisect_left

def L():
	return list(map(int, stdin.readline().split()))

def In():
	return map(int, stdin.readline().split())

def I():
	return int(stdin.readline())
P = 1000000007
(x, y) = In()
if x > 0:
	if y > 0:
		print(0, x + y, x + y, 0)
	else:
		print(0, -x + y, x - y, 0)
elif y > 0:
	print(x - y, 0, 0, -x + y)
else:
	print(x + y, 0, 0, x + y)


(a, b) = map(int, input().split())
v = abs(a) + abs(b)
p = [0, v * (-1) ** (b < 0)]
q = [v * (-1) ** (a < 0), 0]
if a < 0:
	(p, q) = (q, p)
print(*p, *q)


s = str(input())
e = s.split(' ')
news = []
answer = ''
for i in range(len(e)):
	news.append(int(e[i]))
if news[0] > 0 and news[1] > 0:
	answer = '0 ' + str(abs(news[0]) + abs(news[1])) + ' ' + str(abs(news[0]) + abs(news[1])) + ' 0'
elif news[0] > 0 and news[1] < 0:
	answer = '0 ' + str(-(abs(news[0]) + abs(news[1]))) + ' ' + str(abs(news[0]) + abs(news[1])) + ' 0'
elif news[0] < 0 and news[1] > 0:
	answer = str(-(abs(news[0]) + abs(news[1]))) + ' 0 0 ' + str(abs(news[0]) + abs(news[1]))
elif news[0] < 0 and news[1] < 0:
	answer = str(-(abs(news[0]) + abs(news[1]))) + ' 0 0 ' + str(-(abs(news[0]) + abs(news[1])))
print(answer)


(x, y) = map(int, input().split())
aa = abs(x) + abs(y)
p = [[aa * (x // abs(x)), 0], [0, aa * (y // abs(y))]]
p.sort()
for i in p:
	print(*i, end=' ')


(x, y) = map(int, input().split())
(p1, p2) = ((0, (-1 if y < 0 else 1) * (abs(x) + abs(y))), ((-1 if x < 0 else 1) * (abs(x) + abs(y)), 0))
if p1[0] > p2[0]:
	(p1, p2) = (p2, p1)
print(' '.join(map(str, p1 + p2)))


(curX, curY) = (int(x) for x in input().split())
x = abs(curX)
y = abs(curY)
y1 = int(x + y)
x1 = y1
area = x1 * x1
newA = area
while newA <= area:
	(x1, y1) = (x1 + 1, x1 + 1)
	area = newA
	newA = x1 * x1
x1 = int((x1 - 1) * (curX / abs(curX)))
y1 = int((y1 - 1) * (curY / abs(curY)))
if x1 < 0:
	print(str(x1) + ' 0 0 ' + str(y1))
else:
	print('0 ' + str(y1) + ' ' + str(x1) + ' 0')


(x, y) = map(int, input().split())
s = abs(x) + abs(y)
if x >= 0:
	x1 = 0
	x2 = s
	if y >= 0:
		y1 = s
		y2 = 0
	else:
		y1 = -s
		y2 = 0
elif x < 0:
	x1 = -s
	x2 = 0
	if y >= 0:
		y1 = 0
		y2 = s
	else:
		y1 = 0
		y2 = -s
print(x1, y1, x2, y2)


def main():
	(x, y) = map(int, input().split())
	p = abs(x) + abs(y)
	if x < 0:
		print(-p, 0, 0, p if y > 0 else -p)
	else:
		print(0, p if y > 0 else -p, p, 0)
main()


(x, y) = [int(i) for i in input().split()]
length = abs(x) + abs(y)
ans = []
if x < 0:
	ans.append([-length, 0])
else:
	ans.append([length, 0])
if y < 0:
	ans.append([0, -length])
else:
	ans.append([0, length])
ans.sort()
print(ans[0][0], ans[0][1], ans[1][0], ans[1][1])


(x, y) = map(int, input().split())
ans = abs(x) + abs(y)
if x > 0 and y > 0:
	print('%d %d %d %d' % (0, ans, ans, 0))
elif x > 0 and y < 0:
	print('%d %d %d %d' % (0, -ans, ans, 0))
elif x < 0 and y > 0:
	print('%d %d %d %d' % (-ans, 0, 0, ans))
elif x < 0 and y < 0:
	print('%d %d %d %d' % (-ans, 0, 0, -ans))


(x, y) = map(int, input().split())
xs = x // abs(x)
ys = y // abs(y)
s = abs(x) + abs(y)
ret = [(xs * s, 0), (0, ys * s)]
ret.sort()
for (x, y) in ret:
	print(x, y, end=' ')


(x, y) = input().split()
(x, y) = (int(x), int(y))
if x > 0 and y > 0:
	print(0, x + y, x + y, 0, end=' ')
elif x < 0 and y > 0:
	print(-(abs(x) + y), 0, 0, abs(x) + y, end=' ')
elif x > 0 and y < 0:
	print(0, -(x + abs(y)), x + abs(y), 0, end=' ')
else:
	print(-(abs(x) + abs(y)), 0, 0, -(abs(x) + abs(y)), end=' ')


a = input().split()
x = int(a[0])
y = int(a[1])
if x < 0:
	if y > 0:
		x1 = x - y
		x2 = 0
		y1 = 0
		y2 = y - x
	else:
		x1 = x + y
		x2 = 0
		y1 = 0
		y2 = x + y
elif x > 0:
	if y > 0:
		x1 = 0
		x2 = x + y
		y1 = x + y
		y2 = 0
	else:
		x1 = 0
		x2 = x - y
		y1 = y - x
		y2 = 0
print(x1, y1, x2, y2)


(x, y) = map(int, input().split())
if x * y > 0:
	l = [[x + y, 0], [0, x + y]]
else:
	l = [[x - y, 0], [0, y - x]]
l.sort()
ans = [l[0][0], l[0][1], l[1][0], l[1][1]]
print(*ans)


(x, y) = [int(i) for i in input().split()]
if x * y > 0:
	c = y + x
	c1 = (0, c)
	c2 = (c, 0)
	if c2 < c1:
		(c1, c2) = (c2, c1)
	print(c1[0], c1[1], c2[0], c2[1])
else:
	c = y - x
	c1 = (0, c)
	c2 = (-c, 0)
	if c2 < c1:
		(c1, c2) = (c2, c1)
	print(c1[0], c1[1], c2[0], c2[1])


(x0, y0) = map(int, input().split())
k = abs(x0) + abs(y0)
y = y0 // abs(y0)
x = x0 // abs(x0)
t = [(x * k, 0), (0, y * k)]
t.sort()
for (i, j) in t:
	print(i, j, end=' ')


(x, y) = map(int, input().split(' '))
z = int((x ** 2) ** 0.5) + int((y ** 2) ** 0.5)
if x > 0 and y > 0:
	print(0, z, z, 0)
if x < 0 and y > 0:
	print(-z, 0, 0, z)
if x < 0 and y < 0:
	print(-z, 0, 0, -z)
if x > 0 and y < 0:
	print(0, -z, z, 0)


def solve(a, b):
	v = 0
	if a > 0 and b > 0:
		x = a + b
		y = a + b
	elif a < 0 and b > 0:
		x = a - b
		y = -1 * a + b
	elif a < 0 and b < 0:
		x = a + b
		y = a + b
	elif a > 0 and b < 0:
		x = a + -1 * b
		y = b - a
	if x < 0:
		return [x, 0, 0, y]
	return [0, y, x, 0]

def main():
	arr = list(map(int, list(input().split(' '))))
	print(*solve(*arr))
main()


ip = input()
ipList = ip.split(' ')
x = int(ipList[0])
y = int(ipList[1])
if x > -1 and y > -1:
	print(0, x + y, x + y, 0)
elif x < 0 and y > 0:
	print(x - y, 0, 0, y - x)
elif x < 0 and y < 0:
	print(x + y, 0, 0, x + y)
else:
	print(0, y - x, x - y, 0)


(x, y) = [int(s) for s in input().split(' ')]
ans = [(abs(x) // x * (abs(x) + abs(y)), 0), (0, abs(y) // y * (abs(x) + abs(y)))]
ans.sort(key=lambda x: x[0])
ans = ans[0] + ans[1]
print(*ans)


(currX, currY) = (int(x) for x in input().split())
x = abs(currX)
y = abs(currY)
y1 = int(x + y)
x1 = y1
area = x1 * x1
newA = area
while newA <= area:
	(x1, y1) = (x1 + 1, x1 + 1)
	area = newA
	newA = x1 * x1
x1 = int((x1 - 1) * (currX / abs(currX)))
y1 = int((y1 - 1) * (currY / abs(currY)))
if x1 < 0:
	print(str(x1) + ' 0 0 ' + str(y1))
else:
	print('0 ' + str(y1) + ' ' + str(x1) + ' 0')


s = input()
x = int(s.split()[0])
y = int(s.split()[1])
absl = abs(x) + abs(y)
if x > 0:
	if y > 0:
		print(0, absl, absl, 0)
	else:
		print(0, -absl, absl, 0)
elif y > 0:
	print(-absl, 0, 0, absl)
else:
	print(-absl, 0, 0, -absl)


(x, y) = map(int, input().split())
val = abs(x) + abs(y)
sign = lambda a: 1 if a > 0 else -1 if a < 0 else 0
if x > 0:
	point1x = 0
	point1y = val * sign(y)
	point2x = val * sign(x)
	point2y = 0
	print(point1x, point1y, point2x, point2y)
elif x < 0:
	point1x = val * sign(x)
	point1y = 0
	point2x = 0
	point2y = val * sign(y)
	print(point1x, point1y, point2x, point2y)
else:
	None


def solve(x, y):
	t = abs(x) + abs(y)
	if x > 0 and y > 0:
		return (0, t, t, 0)
	elif x > 0 and y < 0:
		return (0, -t, t, 0)
	elif x < 0 and y > 0:
		return (-t, 0, 0, t)
	else:
		return (-t, 0, 0, -t)

def test():
	assert solve(10, 5) == (0, 15, 15, 0)
	assert solve(-10, 5) == (-15, 0, 0, 15)
	print('test passes')
tmp = input()
tmp = list(map(int, tmp.split()))
for i in solve(tmp[0], tmp[1]):
	print(i, end=' ')


def f(l):
	(x, y) = l
	yy = y + x if y * x > 0 else y - x
	xx = x + y if y * x > 0 else x - y
	return [xx, 0, 0, yy] if xx < 0 else [0, yy, xx, 0]
l = list(map(int, input().split()))
print(*f(l))


(a, b) = map(int, input().split())
c = abs(a) + abs(b)
if a > 0:
	if b > 0:
		print(0, c, c, 0)
	else:
		print(0, -c, c, 0)
elif b > 0:
	print(-c, 0, 0, c)
else:
	print(-c, 0, 0, -c)


(x, y) = [int(x) for x in input().split(' ')]
if x >= 0 and y >= 0:
	s = x + y
	print(0, s, s, 0)
if x < 0 and y >= 0:
	d = x * -1
	s = d + y
	print(-s, 0, 0, s)
if x >= 0 and y < 0:
	d = y * -1
	s = d + x
	print(0, -s, s, 0)
if x < 0 and y < 0:
	d = x * -1
	e = y * -1
	s = d + e
	print(-s, 0, 0, -s)


(x, y) = map(int, input().split())
m = 1 if x * y < 0 else -1
c = y - m * x
print(-1 * c // m, 0, 0, c) if -1 * c // m < 0 else print(0, c, -1 * c // m, 0)


(x0, y0) = map(int, input().split())
diff = abs(x0) + abs(y0)
if x0 < 0:
	if y0 < 0:
		print(-diff, 0, 0, -diff)
	else:
		print(-diff, 0, 0, diff)
elif y0 < 0:
	print(0, -diff, diff, 0)
else:
	print(0, diff, diff, 0)


(x, y) = map(int, input().split())
ans = abs(x) + abs(y)
(ansx, ansy) = (ans, ans)
if x < 0:
	ansx = -ans
if y < 0:
	ansy = -ans
if ansx < 0:
	print(ansx, 0, 0, ansy)
else:
	print(0, ansy, ansx, 0)


def main():
	(x, y) = map(int, input().split())
	(xx, yy) = map(abs, (x, y))
	a = (0, (xx + yy) * y // yy)
	c = ((xx + yy) * x // xx, 0)
	if a[0] > c[0]:
		(a, c) = (c, a)
	print(*a, *c)
main()


from sys import stdin, stdout

def stdinhack():
	for line in stdin:
		yield line
next_line = lambda : next(stdinhack()).split()
write = lambda x: stdout.write(x)

def solve():
	(x, y) = map(int, next_line())
	if x > 0 and y > 0:
		print(0, x + y, x + y, 0)
	if x < 0 and y > 0:
		print(x - y, 0, 0, -x + y)
	if x > 0 and y < 0:
		print(0, y - x, x - y, 0)
	if x < 0 and y < 0:
		print(x + y, 0, 0, x + y)
	return
solve()


import math

class CodeforcesTask336ASolution:

	def __init__(self):
		self.result = ''
		self.x_y = []

	def read_input(self):
		self.x_y = [int(x) for x in input().split(' ')]

	def process_task(self):
		x1 = 0
		x2 = 0
		y1 = 0
		y2 = 0
		val = abs(self.x_y[0]) + abs(self.x_y[1])
		x1 = val * math.copysign(1, self.x_y[0])
		y2 = val * math.copysign(1, self.x_y[1])
		if x1 >= x2:
			swap = x2
			x2 = x1
			x1 = swap
			swap = y2
			y2 = y1
			y1 = swap
		self.result = '{} {} {} {}'.format(int(x1), int(y1), int(x2), int(y2))

	def get_result(self):
		return self.result
Solution = CodeforcesTask336ASolution()
Solution.read_input()
Solution.process_task()
print(Solution.get_result())


(x, y) = map(int, input().split(' '))
(A_x, B_x, A_y, B_y) = (0, 0, 0, 0)
A = abs(x) + abs(y)
B = -A
if x < 0:
	A_x = B
	if y > 0:
		B_y = A
	else:
		B_y = B
else:
	B_x = A
	if y > 0:
		A_y = A
	else:
		A_y = B
print('%d %d %d %d' % (A_x, A_y, B_x, B_y))


(x, y) = list(map(int, input().split()))
ans = abs(x) + abs(y)
if x > 0 and y > 0:
	print(0, ans, ans, 0)
elif x > 0 and y < 0:
	print(0, -ans, ans, 0)
elif x < 0 and y > 0:
	print(-ans, 0, 0, ans)
else:
	print(-ans, 0, 0, -ans)


(x, y) = map(int, input().strip().split())
if x > 0 and y > 0:
	print('0', x + y, x + y, '0')
elif x < 0 and y > 0:
	z = -x
	q = -(z + y)
	print(q, '0', '0', z + y)
elif x > 0 and y < 0:
	z = -y
	q = -(z + x)
	print('0', q, z + x, '0')
elif x < 0 and y < 0:
	s = -x
	t = -y
	u = -(s + t)
	print(u, '0', '0', u)


def sgn(n):
	if n > 0:
		return 1
	return -1
(x, y) = map(int, input().split())
v = abs(x) + abs(y)
l = [[v * sgn(x), 0], [0, v * sgn(y)]]
if l[0][0] > l[1][0]:
	(l[0], l[1]) = (l[1], l[0])
for x in l:
	print(*x, end=' ')


data = input().split(' ')
x = int(data[0])
y = int(data[1])
sign_x = -1
sign_y = -1
if x > 0:
	sign_x = 1
if y > 0:
	sign_y = 1
value = abs(x) + abs(y)
if sign_x == 1 and sign_y == 1:
	print('0 %s %s 0' % (value * sign_x, value * sign_y))
elif sign_x == 1 and sign_y == -1:
	print('0 %s %s 0' % (value * sign_y, value * sign_x))
elif sign_x == -1 and sign_y == -1:
	print('%s 0 0 %s' % (value * sign_x, value * sign_y))
elif sign_x == -1 and sign_y == 1:
	print('%s 0 0 %s' % (value * sign_x, value * sign_y))


(x, y) = list(map(int, input().split()))
res = abs(x) + abs(y)
if x > 0 and y > 0:
	print(0, res, res, 0, end=' ')
elif x < 0 and y > 0:
	print(-res, 0, 0, res, end=' ')
elif x > 0 and y < 0:
	print(0, -res, res, 0, end=' ')
else:
	print(-res, 0, 0, -res, end=' ')


(x, y) = map(int, input().split())
if (x < 0) != (y < 0):
	p = [(x - y, 0), (0, y - x)]
else:
	p = [(x + y, 0), (0, y + x)]
p.sort()
print(*p[0], *p[1])


point = list(map(int, input().rstrip().split()))
x = point[0]
y = point[1]
if x > 0 and y > 0:
	temp_x = x + y
	temp_y = y + x
elif x < 0 and y > 0:
	temp_x = x - y
	temp_y = y - x
elif x < 0 and y < 0:
	temp_x = x + y
	temp_y = y + x
else:
	temp_x = x - y
	temp_y = y - x
if temp_x < 0:
	(x1, y1) = (temp_x, 0)
	(x2, y2) = (0, temp_y)
else:
	(x2, y2) = (temp_x, 0)
	(x1, y1) = (0, temp_y)
print(x1, y1, x2, y2)


(a, b) = input().split()
a = int(a)
b = int(b)
if a > 0 and b > 0:
	print(0, a + b, a + b, 0)
elif a < 0 and b > 0:
	print(-(abs(a) + abs(b)), 0, 0, abs(a) + abs(b))
elif a > 0 and b < 0:
	print(0, -(abs(a) + abs(b)), abs(a) + abs(b), 0)
else:
	print(-(abs(a) + abs(b)), 0, 0, -(abs(a) + abs(b)))


def bear(x, y):
	if x > 0 and y > 0:
		return (0, x + y, x + y, 0)
	elif x < 0 < y:
		return (-1 * (abs(x) + abs(y)), 0, 0, abs(x) + abs(y))
	elif x < 0 and y < 0:
		return (-1 * (abs(x) + abs(y)), 0, 0, -1 * (abs(x) + abs(y)))
	return (0, -1 * (abs(x) + abs(y)), abs(x) + abs(y), 0)
(X, Y) = [int(i) for i in input().split()]
print(*bear(X, Y))


(x, y) = map(int, input().split())
t = abs(x) + abs(y)
s = y // abs(y)
if x > 0:
	print(0, s * t, t, 0)
else:
	print(-t, 0, 0, s * t)


__copyright__ = ''
__author__ = 'Son-Huy TRAN'
__email__ = 'sonhuytran@gmail.com'
__doc__ = ''
__version__ = '1.0'

def main() -> int:
	(x0, y0) = map(int, input().split())
	if x0 * y0 > 0:
		b = x0 + y0
		if b > 0:
			print('0 %d %d 0' % (b, b))
		else:
			print('%d 0 0 %d' % (b, b))
	else:
		b = y0 - x0
		if b < 0:
			print('0 %d %d 0' % (b, -b))
		else:
			print('%d 0 0 %d' % (-b, b))
	return 0
exit(main())


(x, y) = (int(i) for i in input().split())
d = abs(x) + abs(y)
if x < 0:
	x1 = -d
else:
	x1 = d
if y < 0:
	y1 = -d
else:
	y1 = d
if x1 < 0:
	print(x1, 0, 0, y1)
else:
	print(0, y1, x1, 0)


def main():
	(x, y) = map(int, input().strip().split())
	t = abs(x) + abs(y)
	if x > 0 < y:
		print(0, t, t, 0)
	elif x < 0 < y:
		print(-t, 0, 0, t)
	elif x > 0 > y:
		print(0, -t, t, 0)
	else:
		print(-t, 0, 0, -t)
main()


(x, y) = map(int, input().strip().split())
total = abs(x) + abs(y)
if x > 0 and y > 0:
	print(0, total, total, 0)
elif x < 0 and y < 0:
	print(-total, 0, 0, -total)
elif x > 0 and y < 0:
	print(0, -total, total, 0)
else:
	print(-total, 0, 0, total)


(x, y) = map(int, input().split())
if x > 0:
	p1 = [x + abs(y), 0]
	p2 = [0, [-1, 1][y > 0] * p1[0]]
	print(*p2, *p1)
	exit(0)
else:
	p1 = [x - abs(y), 0]
	p2 = [0, [1, -1][y > 0] * p1[0]]
	print(*p1, *p2)


(x, y) = [int(i) for i in input().split()]
b = abs(y)
if x > 0 and y > 0:
	print(0, x + b, x + b, 0)
elif x > 0 and y < 0:
	print(0, -x - b, x + b, 0)
elif x < 0 and y > 0:
	print(x - b, 0, 0, abs(x) + b)
elif x < 0 and y < 0:
	print(y + x, 0, 0, y + x)


l = list(map(int, input().split()))
x = l[0]
y = l[1]
if x > 0 and y > 0:
	print('0 ', x + y, ' ', x + y, ' 0')
elif x < 0 and y < 0:
	print(x + y, ' 0 0 ', x + y)
elif x < 0 and y > 0:
	print(x - y, ' 0 0 ', y - x)
else:
	print('0 ', y - x, ' ', x - y, ' 0')


import sys
import math
(x, y) = [int(x) for x in sys.stdin.readline().split()]
result = []
if x > 0 and y > 0:
	result.append(str(0))
	result.append(str(x + y))
	result.append(str(x + y))
	result.append(str(0))
elif x < 0 and y > 0:
	result.append(str(int(-(math.fabs(x) + y))))
	result.append(str(0))
	result.append(str(0))
	result.append(str(int(math.fabs(x) + y)))
elif x < 0 and y < 0:
	result.append(str(x + y))
	result.append(str(0))
	result.append(str(0))
	result.append(str(x + y))
else:
	result.append(str(0))
	result.append(str(int(-(x + math.fabs(y)))))
	result.append(str(int(x + math.fabs(y))))
	result.append(str(0))
print(' '.join(result))


while 1:
	try:
		(x, y) = map(int, input().split())
		if x > 0 and y > 0:
			(x1, y1, x2, y2) = (0, x + y, x + y, 0)
		elif x < 0 and y > 0:
			(x1, y1, x2, y2) = (-(-x + y), 0, 0, -x + y)
		elif x < 0 and y < 0:
			(x1, y1, x2, y2) = (-(-x - y), 0, 0, -(-x - y))
		else:
			(x1, y1, x2, y2) = (0, -(x - y), x - y, 0)
		print(x1, y1, x2, y2, end=' ')
	except EOFError:
		break


(a, b) = map(int, input().split())
val = abs(a) + abs(b)
p = val * a // abs(a)
q = 0
x = 0
y = val * b // abs(b)
if p > 0:
	print(q, y, p, x)
else:
	print(p, q, x, y)


(x, y) = map(int, input().split(' '))
if (x > y or y > x) and x > 0 and (y > 0):
	print(0, x + y, x + y, 0)
elif x < 0 and y > 0:
	print(x - y, 0, 0, (x - y) * -1)
elif x > 0 and y < 0:
	print(0, -x + y, (-x + y) * -1, 0)
elif y < 0 and x < 0:
	print(x + y, 0, 0, x + y)
elif y == x:
	print(0, x + y, x + y, 0)
elif y == x and y < 0:
	ptint(x + y, 0, 0, (x + y) * -1)


I = [int(i) for i in input().split()]
(x, y) = (I[0], I[1])
ans = int(abs(x) + abs(y))
(A, C) = ([0, 0], [0, 0])
if x > 0 and y > 0:
	(A[1], C[0]) = (ans, ans)
if x > 0 and y < 0:
	(A[1], C[0]) = (-ans, ans)
if x < 0 and y > 0:
	(A[0], C[1]) = (-ans, ans)
if x < 0 and y < 0:
	(A[0], C[1]) = (-ans, -ans)
print(str(A[0]) + ' ' + str(A[1]) + ' ' + str(C[0]) + ' ' + str(C[1]))


(x, y) = map(int, input().split())
a1 = abs(x) + abs(y)
a2 = a1
if y < 0:
	a2 = -a1
if x >= 0:
	ans = '0 ' + str(a2) + ' ' + str(a1) + ' 0'
else:
	ans = str(-a1) + ' 0 ' + '0 ' + str(a2)
print(ans)


(x, y) = map(int, input().split())
if x >= 0 and y >= 0:
	c = x + y
	print(0, c, c, 0)
elif x >= 0 and y <= 0:
	c = y - x
	print(0, c, -c, 0)
elif x <= 0 and y >= 0:
	c = y - x
	print(-c, 0, 0, c)
else:
	c = y + x
	print(c, 0, 0, c)


import sys
f = sys.stdin
line = [int(i) for i in f.read().strip().split()]
(x, y) = (line[0], line[1])
(x1, x2) = (0, abs(x) + abs(y))
(y1, y2) = (abs(x) + abs(y), 0)
if x < 0 and y > 0:
	(x1, y1) = (y1 * -1, x1)
	(x2, y2) = (y2 * -1, x2)
elif x > 0 and y < 0:
	y1 *= -1
elif x < 0 and y < 0:
	(x1, x2) = (x2 * -1, x1)
	(y1, y2) = (y2, y1 * -1)
print(x1, y1, x2, y2)


(x, y) = map(int, input().split(' '))
abssum = abs(x) + abs(y)
if x // abs(x) == y // abs(y):
	if x > 0:
		x1 = 0
		y1 = abssum
		x2 = abssum
		y2 = 0
	else:
		x1 = -abssum
		y1 = 0
		x2 = 0
		y2 = -abssum
else:
	if x > 0:
		x1 = 0
		y1 = -abssum
		x2 = abssum
		y2 = 0
	if x < 0:
		x1 = -abssum
		y1 = 0
		x2 = 0
		y2 = abssum
print(x1, y1, x2, y2, end=' ')


(x, y) = map(int, input().split())
if x > 0 and y > 0:
	x1 = x + y
	print(0, x1, x1, 0)
if x < 0 and y > 0:
	x1 = x - y
	print(x1, 0, 0, -x1)
if x > 0 and y < 0:
	x1 = x - y
	print(0, -x1, x1, 0)
if x < 0 and y < 0:
	x1 = x + y
	print(x1, 0, 0, x1)


m = []
m = input().split()
x = int(m[0])
y = int(m[1])
total = abs(x) + abs(y)
if x > 0 and y > 0:
	print('0 ' + str(total) + ' ' + str(total) + ' 0')
elif x < 0 and y > 0:
	print(str(-total) + ' 0 0 ' + str(total))
elif x < 0 and y < 0:
	print(str(-total) + ' 0 0 ' + str(-total))
else:
	print('0 ' + str(-total) + ' ' + str(total) + ' 0')


(x, y) = map(int, input().split())
(a, b) = (0, 0)
if x > 0:
	if y > 0:
		a = x + y
	else:
		a = x + -1 * y
elif y > 0:
	a = x + -1 * y
else:
	a = x + y
if y > 0:
	if x > 0:
		b = x + y
	else:
		b = y + -1 * x
elif x > 0:
	b = -1 * x + y
else:
	b = x + y
if a < 0:
	print(a, 0, 0, b)
else:
	print(0, b, a, 0)


(x, y) = map(int, input().split())
if x < 0:
	if y > 0:
		print(' '.join(map(str, [x - y, 0, 0, y - x])))
	if y < 0:
		print(' '.join(map(str, [x + y, 0, 0, y + x])))
if x > 0:
	if y > 0:
		print(' '.join(map(str, [0, y + x, x + y, 0])))
	if y < 0:
		print(' '.join(map(str, [0, y - x, x - y, 0])))


def copysign(a, b):
	return abs(a) * [1, -1][b < 0]
(x, y) = map(int, input().split())
z = abs(x) + abs(y)
if x < 0:
	print(copysign(z, x), 0, 0, copysign(z, y))
else:
	print(0, copysign(z, y), copysign(z, x), 0)


import math
(x, y) = map(int, input().split())
(x1, y1, x2, y2) = (0, 0, 0, 0)
if x < 0:
	x1 = x - int(math.fabs(y))
	if y < 0:
		y2 = y + x
	else:
		y2 = y - x
else:
	x2 = x + int(math.fabs(y))
	if y < 0:
		y1 = y - x
	else:
		y1 = y + x
print(x1, y1, x2, y2)


number = input('')
for index in range(0, len(number)):
	if number[index] == ' ':
		split = index
num1 = number[0:split]
num2 = number[split:len(number)]
num1 = int(num1)
num2 = int(num2)
sum = abs(num1) + abs(num2)
if num1 > 0 and num2 > 0:
	print(0, sum, sum, 0)
if num1 < 0 and num2 > 0:
	print(-1 * sum, 0, 0, sum)
if num1 > 0 and num2 < 0:
	print(0, -sum, sum, 0)
if num1 < 0 and num2 < 0:
	print(-sum, 0, 0, -sum)


(x, y) = map(int, input().split())
if x * y > 0:
	k = y + x
	if k > 0:
		print(0, k, k, 0)
	else:
		print(k, 0, 0, k)
else:
	k = y - x
	if k > 0:
		print(-k, 0, 0, k)
	else:
		print(0, k, -k, 0)


(x, y) = map(int, input().split())
if x > 0 and y > 0 or (x < 0 and y < 0):
	x1 = x + y
	y1 = 0
	x2 = 0
	y2 = x + y
else:
	x1 = -(y - x)
	y1 = 0
	y2 = y - x
	x2 = 0
if x1 < x2:
	print(x1, y1, x2, y2)
else:
	print(x2, y2, x1, y1)