#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iterator>
using namespace std;
template <class InputIterator>
void filter_string( InputIterator first, InputIterator last,
string filt_elems = string("/",?."))
{
for ( ; first != last; first++ )
{
string::size_type pos = 0;
while (( pos = (*first).find_first_of( filt_elems, pos ))
!= string::npos )
(*first).erase( pos, 1 );
}
}
bool length_less(const string & s1, const string & s2)
{
return s1.size() < s2.size() ;
}
void main()
{
istream_iterator<string> input(cin), eos;
vector<string> text;
copy(input, eos, back_inserter(text));
string filt_elems("/",.?;:");
filter_string(text.begin(), text.end(), filt_elems);
int cnt = text.size();
string * max = max_element(text.begin(), text.end(), length_less);
int len = max->size();
}