import java.util.Scanner; public class main { public static void main(String[] args){ Scanner sc= new Scanner(System.in); String S = sc.next(); char[] chars = S.toCharArray(); int lengths =S.length(); int i=0; int count=0; int oldcount=0; for(;i