c1, c2, c3, c4 = map(int, raw_input().split()) # z1+z2=p/q p = c1 * c4 - c2 * c3 q = c1 * c3 - c2 ** 2 # z1*z2=r/s r = c2 * c4 - c3 ** 2 s = c1 * c3 - c2 ** 2 # t^2-(z1+z2)t+z1*z2=0 D = p * p * s * s - 4 * q * q * r * s if D >= 0: print 'R' else: print 'I'