import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N544 { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String N=br.readLine(); int ans=0; int A=0; int B=0; int ok=0; int l=N.length(); for(int i=0;i