public boolean isTerm(String input, int pos)
	{
		
		if(isFactor(input,pos)){
			pos = takeFactor(input,pos);
			if(isMultiplyDivide(input,pos)){
				pos = takeMultiplyDivide(input,pos);
				if(isFactor(input,pos)){return true ;}
			}
			return true;
			}
		
		return false; 
	}