#include<iostream>
#include<cstring>
#include<sstream>
using namespace std;
int main()
{
string s,smax;
int maxs=0;
getline(cin,s);
int len=s.size();
s[len-1]=' ';
stringstream scin(s);
string s1;
while(scin>>s1){
if(maxs<s1.size()){
maxs=s1.size();
smax=s1;
}
}
cout<<smax;
return 0;
}