#include using namespace std; typedef long long ll; typedef vector vi; typedef vector vl; typedef complex P; typedef pair pii; #define REP(i,n) for(ll i=0;i>c1>>c2>>c3>>c4; if(c1!=0){ double p1 = c1/2.0; double za = c2/c1; double zb = sqrt(abs(za*za - c3/c1)); double c4i = 2.0*p1*(za*za*za - 3.0*za*zb*zb); if(c4i==c4){ // maybe complex cout << "I" << endl; }else{ cout << "R" << endl; } }else{ cout << "R" << endl; } return 0; }