Problems

# Segment in a coordinate system

# Segment in a coordinate system

Given segment with coordinates `x`

, _{1}`y`

, _{1}`x`

, _{2}`y`

. In which coordinate quarters the segment is located?_{2}

#### Input

One line contains four integers `x`

, _{1}`y`

, _{1}`x`

, _{2}`y`

(_{2}**-50** ≤ `x`

, _{1}`y`

, _{1}`x`

, `y[2] ≤ _{2}**50**).

#### Output

Print in ascending order the quarters with segment. Print each number in a new line, or **0** if segment lies on the axis.

Input example #1

1 1 -1 1

Output example #1

1 2