#include #include #include #include using namespace std; #define REP(i,s,e) for (i = s; i <= e; i++) #define rep(i,n) REP (i,0,(int)(n)-1) #define RREP(i,s,e) for (i = s; i >= e; i--) #define rrep(i,n) RREP (i,(int)(n)-1,0) #define INF (int)1e8 #define MOD (int)(1e9+7) typedef long long ll; int main(void) { int a, b, c, d; cin >> a >> b >> c >> d; double x = (double) (a * d - b * c) / (a * c - b * b); double y = (double) (b * d - c * c) / (a * c - b * b); if (x * x - 4 * y >= 0) cout << "R" << endl; else cout << "I" << endl; return 0; }