import java.util.Scanner; class Test { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); char[] s = in.nextLine().toCharArray(); int n = 1; for(int i=0; i