View as PDF

Points: 3
Time limit: 2.0s
Memory limit: 62M

Author:
Problem type

In a Cartesian Plane, a grid is divided into 4 parts. Points on a Cartesian Plane can be represented with coordinates. Points in the top right quadrant of the plane have a positive and positive value. This quadrant is referred to as Quadrant 1. The properties of the quadrants are shown in the image below.

#### Input Specification

The first line of input will contain .
The second line of input will contain .

#### Output Specification

Output the quadrant number the given point lies on.

#### Sample Input

5
-7

#### Sample Output

4