import java.util.regex.Pattern;

class RegexIdiom
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Pattern r = Pattern.compile("htt+p");
		boolean b = r.matcher("http://www.google.com").find();
		System.out.println(b);
		b = r.matcher("htttp").find();
		System.out.println(b);
		b = r.matcher("htp").find();
		System.out.println(b);
	}
}