#include<bits/stdc++.h>
using namespace std;
int main()
{
char s[260],w[100];
int k = 0;
char t[100];
cin.getline(s,260);
for(int i = 0;i<strlen(s);i++)
{
if(s[i] != ' ')
{
w[k] = s[i];
k++;
if(s[i+1] == ' ' || s[i+1] == '\0')
{
w[k] = '\0';
//cout<<w<<endl;
//cout<<strlen(w)<<endl;
if(strlen(w) > strlen(t))
{
strcpy(t,w);
}
k=0;
}
}
}
cout<<t;
}
/**************************************************************
Problem: 1107
User: wuyichen
Language: C++
Result: Accepted
Time:9 ms
Memory:2072 kb
****************************************************************/