#include <iostream>
using namespace std;
int main()
{
string str1, tempstr;
unsigned cnt = 0;
cin >> str1;
tempstr = str1;
while (cin >> str1)
{
if (str1 == tempstr)
{
cnt = 1;
break;
}
else
{
tempstr = str1;
cnt = 0;
}
}
if (cnt == 1)
cout << "重复的单词是" << tempstr << endl;
else
cout << "没有单词重复出现" << endl;
system("pause");
return 0;
}