Codeforces Round 195 (Div. 2)
A
Vasily the Bear and Triangle
Codeforces
1000
原题
←B →
翻译中…

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 (image 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.

翻译中…

Note

翻译中…

image

翻译中…

Figure to the first sample

翻译中…

样例

Input #1
10 5
Output #1
0 15 15 0
InputCopy OutputCopy
Input #2
-10 5
Output #2
-15 0 0 15
InputCopy OutputCopy
题目信息
题号
336A
时间限制
1 s
内存限制
256 MB
标签
模拟
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。