import java.util.regex.*;
import java.io.*;

class Main
{
  public static void main (String[] args) throws java.lang.Exception
  {
        java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
    	String input = r.readLine();

        Pattern p = Pattern.compile("abc");
        Matcher m = p.matcher(input);

        m.find(); // what to do when there is no match?
        m.find(); // what to do when there is only one match?
        
        System.out.println("Second match is between " + m.start() + " and " + m.end());
  }
}