#include <iostream>
#include <string>
using namespace std;
int main(){
string a,b;
int len = 0;
while(cin>>a){
if(a[a.size()-1] == '.') a.pop_back(); //判断末尾是否为 " . "
if(a.size()>len) len = a.size(),b=a;
}
cout<<b;
return 0;
}