5.20
#include<iostream>
#include<string>
using namespace std;
int main() {
string str, prestr;
bool twice = false;
while (cin >> str) {
if (str == prestr) {
twice = true;
break;
}
else {
prestr = str;
}
}
if (!twice) {
cout << "没有单词重复" << endl;
}
else {
cout << str << endl;
}
return 0;
}