private static String before(String s){
		//System.out.println("befoe input"+s);
		int closed=0;
		int countdownIndex=0;
		int i=s.length()-1;
		//gets an xtra char but thts alright i hope
		for (;i>=0&&countdownIndex==0;i--){
			if(s.charAt(i)==']'){
				closed++;
				countdownIndex=i;
			}
		}
		int x=countdownIndex-1;
		for(;x>=0&&closed>0;x--){
			if(s.charAt(x)==']'){
				closed++;
			}
			if(s.charAt(x)=='['){
				closed--;
			}
		}
		
		//System.out.println("before["+s.substring(x+1,s.length())+"]");
		String answer=s.substring(x+1,s.length());
		//System.out.println(answer);
		if(answer.indexOf("not")==-1 && answer.indexOf("is")==-1)
		return answer;
		else
			return before(s.substring(0,x+1));
		
	}