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