#include long M,m;char s[],*t;main(i){for(;gets(s);M=M?m