import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); String mode = "c"; int min = Integer.MAX_VALUE; int L = -1; int R = -1; for (int i=0; i