import java.util.Scanner; public class Main{ public static void main(String args[])throws Exception{ Scanner sc = new Scanner(System.in); String S = sc.next(); int x = 0; int y = 0; int L = S.length(); for(int i=0;i