import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); char c; ArrayList list = new ArrayList<>(); for(int i=0;i w2 - list.get(i) - 1){ min = w2 - (list.get(i) - 1); } } } System.out.println(min); } }