include [HTML_REMOVED]
using namespace std;
int main()
{
string s[1000];
int i=0,max=0,n;
string t;
while(cin>>s[i]) i;
for(int j=0;j[HTML_REMOVED]max)
{
max=n;
t=s[j];
}
}
if(t==s[i-1])
{
for(int i=0;i<t.size()-1;i)
cout<<t[i];
}
else cout<<t;
return 0;
}
//法二
include [HTML_REMOVED]
using namespace std;
int main()
{
string s,t;
int max=0;
while(cin>>s)
{
int cnt=0;
if(s[s.size()-1]==’.’)
cnt=s.size()-1;
else cnt=s.size();
if(cnt>max)
{
max=cnt;
t=s;
}
}
if(t[t.size()-1]==’.’)
{
for(int i=0;i<t.size()-1;i++)
cout<<t[i];
}
else cout<<t;
return 0;
}