#include using namespace std; int main() { string zbor1, zbor2; cin >> zbor1 >> zbor2; if(zbor1 == zbor2) { cout << "ISTI" << endl; } else { cout << "RAZLICNI" << endl; } return 0; }