char s[9];i,n,m;main(){for(gets(s);s[i];)s[i+2]+90|s[i+1]+128|s[i++]+30?n=0:(i+=2,m<++n?m=n:0);i=!printf("%d",m);}