#include<iostream> #include<string> using namespace std; int main() { string s,p; while(cin>>s){ if(s.back()=='.')s.pop_back(); if(s.size()>p.size())p=s; } cout<<p<<endl; return 0; }