import java.util.Scanner; import java.util.Arrays; public class a{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a=sc.next(); int tmp[]=new int[10]; Arrays.fill(tmp, 0); int num=0, max=0; for(int i=0; i0){ num++; }else{ tmp[num]++; } } for(int j=0; j<10; j++){ if(tmp[j]>max) max=tmp[j]; } System.out.println(max); } }