import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class No345 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int [] C = new int[str.length()]; Arrays.fill(C,0); C[0] = str.indexOf("c"); int [] length = new int[str.length()]; Arrays.fill(length,-1); for (int i=0; i length[i]) ans = length[i]; } System.out.println(ans); } }