#include #include #include #include #include #include #include #include #include #include #include #include #include #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) #define var auto #define mod 1000000007 #define inf 2147483647 #define nil -1 #define mp make_pair typedef long long ll; using namespace std; int main() { cin.tie(0); // source code ll c1, c2, c3, c4; cin >> c1 >> c2 >> c3 >> c4; ll ret = (c1 * c4 - c2 * c3) * (c1 * c4 - c2 * c3) - 4 * (c2 * c4 - c3 * c3) * (c1 * c3 - c2 * c2); cout << ((ret >= 0) ? "R" : "I") << endl; return 0; }