//为了方便,要包含的文件会不同,但我没有删
#include <iostream>
#include <string>
#include <vector>
#include <bitset>
#include <cstring> //和C语言的string.h其实是一个版本
using std::bitset;
using std::vector;
using std::cin;
using std::endl;
using std::cout;
using std::string;
//---------------------------------------------------------------------------
int main()
{
string s,s1,str;
while(cin>>s)
{
if(s==s1)
{
str=s;
break;
}
else
s1=s;
}
if(!str.empty ())
cout<<"重复的单词是:"<<str<<endl;
else
cout<<"没有重复单词"<<endl;
return 0;
}
/*
184页习题6.20读入系列单词直到有重复单词
*/