import java.util.*; public class A{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { char in[] = s.next().toCharArray(); int result=0; for(int i=0;i