#!/usr/bin/env python3 c1, c2, c3, c4 = map(int,input().split()) p = (c1*c4 - c2*c3)**2 >= 4*(c1*c3 - c2**2)*(c2*c4 - c3**2) print('R' if p else 'I')