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