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