← Problem book: C Lesson 30 of 96 · 10 XP

Coordinate quadrant

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given the coordinates of a point x and y — integers that are not zero. Print the number of the quadrant the point lies in: 1 — top right, 2 — top left, 3 — bottom left, 4 — bottom right.

Example

Input:

3 5

Output:

1

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.