e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

WEEK5 GEOMETRY

Which quarter?

It set a point with co-ordinates х and y. Define, in what co-ordinate quarter it is located.

Input

In a unique line through a blank 2 material numbers - co-ordinates of a point are set, value of co-ordinates on the module do not exceed 100.

Output

The singular is the number of a corresponding quarter, or 0 if unequivocally define a quarter it is impossible.

Time limit 0.5 seconds
Memory limit 64 MiB
Input example #1
12.5 30.0
Output example #1
1
Source SFE-2010 Variant 18