import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int count = 1; for (int i = 0; i < str.length(); i++) { count=Math.max(count,getCount(str,count,i-1,i...