c1,c2,c3,c4 = map(int,raw_input().split()) print"I"if(c2*c3-c1*c4)**2-4*(c1*c3-c2**2)*(c2*c4-c3**2)<0 else "R"