long a,b,c,d; main(){ scanf("%ld%ld%ld%ld",&a,&b,&c,&d); puts((a*d-b*c)*(a*d-b*c)+4*(c*c-b*d)*(c*a-b*b)<0?"I":"R"); return 0; }