#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a*a>b*c){ cout<<"SQUARE"<<endl; }else{ cout<<"RECTANGLE"<<endl; } return 0; }