package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N341 { public static void main(String[] args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); int cnt=0; int max=0; for(int i=0;imax)?cnt:max; } else { cnt=0; } } System.out.println(max); } }