package lovo.test;
import java.util.Scanner;
public class Java {
@param args
public static void main(String[] args) {
String regexP = "[INDEPENDENT]{3}";
System.out.println("请输入一个字符串");
Scanner scan = new Scanner(System.in);
String input = scan.next();
if(input.matches(regexP)){
System.out.println("成功");
}else{
System.out.println("失败");
}