import java.util.regex.Matcher;
import java.util.regex.Pattern;
 
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Pattern p = Pattern.compile("a.*b.*c");
		Matcher m = p.matcher(new String(new char[500]).replace("\0", "a") + new String(new char[500]).replace("\0", "b"));
		m.find();
	}
}