#include <iostream>
#include <cmath>
using namespace std;
int main() {
float x,y;
cin >> x >> y;
if (x > 0 && y > 0 )
{
cout << "1" << endl;
}
else if (x < 0 && y > 0 )
{
cout << "2" << endl;
}
else if (x < 0 && y < 0 )
{
cout << "3" << endl;
}
else if (x > 0 && y < 0 )
{
cout << "4" << endl;
}
else
cout << "0" << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiBpbnQgbWFpbigpIHsKIGZsb2F0IHgseTsKIGNpbiA+PiB4ID4+IHk7CiAgaWYgKHggPiAwICYmIHkgPiAwICkKICB7CiAgY291dCA8PCAiMSIgPDwgZW5kbDsKICB9CiBlbHNlIGlmICh4IDwgMCAmJiB5ID4gMCApCiAgewogIGNvdXQgPDwgIjIiIDw8IGVuZGw7CiB9CiBlbHNlIGlmICh4IDwgMCAmJiB5IDwgMCApCiAgewogIGNvdXQgPDwgIjMiIDw8IGVuZGw7CiB9CiBlbHNlIGlmICh4ID4gMCAmJiB5IDwgMCApCiB7CiAgY291dCA8PCAiNCIgPDwgZW5kbDsKIH0KIGVsc2UgCiAgY291dCA8PCAiMCIgPDwgZW5kbDsKIHJldHVybiAwOwp9