#include <iostream>
using namespace std;
long a,b;
int main() {
cin>>a>>b;
if(a<0&&b<0)
{
cout<<"III";
return 0;
}
if(a>0&&b>0)
{
cout<<"I";
return 0;
}
if(a>0&&b<0)
{
cout<<"II";
return 0;
}
if(a<0&&b>0)
{
cout<<"IV";
return 0;
}
if(a==0&&b==0)
{
cout<<"0";
return 0;
}
if(a==0&&b!=0)
{
cout<<"OY";
return 0;
}
if(b==0&&a!=0 )
{
cout<<"OX";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpsb25nIGEsYjsKaW50IG1haW4oKSB7CmNpbj4+YT4+YjsJCgkKCQlpZihhPDAmJmI8MCkKCSAgICAgICAgIHsgICAgCgljb3V0PDwiSUlJIjsgCgkJcmV0dXJuIDA7CgkgICAgICAgICAgfQkKCSAgICAgICAgICAKCQlpZihhPjAmJmI+MCkgICAgICAgICAgCgkJewoJCQljb3V0PDwiSSI7CgkJCXJldHVybiAwOwoJCX0gICAgICAKCQkKCQkJCgkJaWYoYT4wJiZiPDApICAgICAgICAgIAoJCXsKCQkJY291dDw8IklJIjsKCQkJcmV0dXJuIDA7CgkJfSAKCQlpZihhPDAmJmI+MCkgICAgICAgICAgCgkJewoJCQljb3V0PDwiSVYiOwoJCQlyZXR1cm4gMDsKCQl9IAoJCQkKCQlpZihhPT0wJiZiPT0wKSAgICAgICAgICAKCQl7CgkJCWNvdXQ8PCIwIjsKCQkJcmV0dXJuIDA7CgkJfSAKCQkJCgkJaWYoYT09MCYmYiE9MCkgICAgICAgICAgCgkJewoJCQljb3V0PDwiT1kiOwoJCQlyZXR1cm4gMDsKCQl9CgkJCQoJCQlpZihiPT0wJiZhIT0wICkgICAgICAgICAgCgkJewoJCQljb3V0PDwiT1giOwoJCX0gICAgICAgICAgCglyZXR1cm4gMDsKCn0=