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