e-olymp
Problems

Which quarter?

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
12 31
Output example
1
Source SFE-2010 Variant 18