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