#include <iostream>
#include <string>
using namespace std;
int main() {
string p, r;
cin >> p >> r;
if (p == r) {
cout << "same" << endl;
} else {
cout << "different" << endl;
}
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main() {
string p, r;
cin >> p >> r;
if (p == r) {
cout << "same" << endl;
} else {
cout << "different" << endl;
}
return 0;
}